What is the meaning of a $ sign in tablgen? Here is an example
// Pattern fragments
def vextract_sext_i8 : PatFrag<(ops node:$vec, node:$idx),
(MipsVExtractSExt node:$vec, node:$idx, i8)>;
|
- |
Taken from
What is the meaning of a $ sign in tablgen? Here is an example
// Pattern fragments
def vextract_sext_i8 : PatFrag<(ops node:$vec, node:$idx),
(MipsVExtractSExt node:$vec, node:$idx, i8)>;
|
- |
Taken from
Whenever you use a variable in TableGen, you write it
<type>:$<name>
The name is always prefixed with a $
, similar to how in IR, identifiers are always prefixed with %
or @
.
Thanks.