Displaying 2 results from an estimated 2 matches for "mybasetype".
Did you mean:
basetype
2013 Aug 07
3
[LLVMdev] tablegen question
Hi,
I am trying to make my tablegen files more flexible and for that I would like to have a name that in the end will be replaced with
a type.
If tablegen would support c preprocssing, I would do it like this:
---
#define myBaseType i32
...
def imm32 : Operand<myBaseType>;
def immZExt10 : ImmLeaf<myBaseType, [{return isUInt<10>(Imm);}]>;
...
---
Is there a way to achieve something like this with tablegen ?
Greetings,
Jeroen Dobbelaere
2013 Aug 07
0
[LLVMdev] tablegen question
...Mdev] tablegen question
>
> Hi,
>
> I am trying to make my tablegen files more flexible and for that I would like
> to have a name that in the end will be replaced with a type.
>
> If tablegen would support c preprocssing, I would do it like this:
>
> ---
> #define myBaseType i32
> ...
> def imm32 : Operand<myBaseType>;
> def immZExt10 : ImmLeaf<myBaseType, [{return isUInt<10>(Imm);}]>; ...
> ---
>
> Is there a way to achieve something like this with tablegen ?
>
> Greetings,
>
> Jeroen Dobbelaere
>
>
>
>...