[LLVMdev] How to set isTarget bit for a complex intrinsic class in tblgen?

Dmitry Mikushin dmitry at kernelgen.org
Thu Feb 7 09:43:51 PST 2013


Dear all,

Let's say there is some complex tblgen intrinsic definition, for example:

class MEMBAR<string StrOp, Intrinsic IntOP> :
              NVPTXInst<(outs), (ins),
            StrOp, [(IntOP)]>;

def INT_MEMBAR_CTA : MEMBAR<"membar.cta;", int_nvvm_membar_cta>;
def INT_MEMBAR_GL  : MEMBAR<"membar.gl;",  int_nvvm_membar_gl>;
def INT_MEMBAR_SYS : MEMBAR<"membar.sys;", int_nvvm_membar_sys>;

Question: how to set an isTarget bit to the Intrinsic subclass of it?

In simple cases that would be

let isTarget = 1 in { ... }

How to make the same here?

Thanks,
- D.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130207/d7f2c883/attachment.html>


More information about the llvm-dev mailing list