X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=docs%2FTableGen%2FLangRef.rst;h=134afedbb7b4b80ce0f2e5bedbb0804d80f32e31;hb=a52ddfa9309ca6999147312a9cddff6ade0f9cf4;hp=8a39f53d6d27905a1e1e28d4ee471f55b8f91da3;hpb=b9a65fd0028acd588f8382a50f7271e332fc363d;p=oota-llvm.git diff --git a/docs/TableGen/LangRef.rst b/docs/TableGen/LangRef.rst index 8a39f53d6d2..134afedbb7b 100644 --- a/docs/TableGen/LangRef.rst +++ b/docs/TableGen/LangRef.rst @@ -2,8 +2,6 @@ TableGen Language Reference =========================== -.. sectionauthor:: Sean Silva - .. contents:: :local: @@ -57,6 +55,10 @@ One aspect to note is that the :token:`DecimalInteger` token *includes* the ``+`` or ``-``, as opposed to having ``+`` and ``-`` be unary operators as most languages do. +Also note that :token:`BinInteger` creates a value of type ``bits`` +(where ``n`` is the number of bits). This will implicitly convert to +integers when needed. + TableGen has identifier-like tokens: .. productionlist:: @@ -94,8 +96,8 @@ wide variety of meanings: .. productionlist:: BangOperator: one of :!eq !if !head !tail !con - :!add !shl !sra !srl - :!cast !empty !subst !foreach !strconcat + :!add !shl !sra !srl !and + :!cast !empty !subst !foreach !listconcat !strconcat Syntax ======