[LLVMdev] llvm-tblgen for ARMInstrFormats.td with !if(a,b,c)
GangRyung Uh
guh at boisestate.edu
Sat Aug 31 17:54:57 PDT 2013
Hi,
I wonder whether I can conditionally set AsmString in class sI. For
instance, I would like to know whether it is possible to establish some int
or bit operator to check whether bits<4> p is 14. What I would like to do
is to set AsmString as follows,
class sI<...> :InstARM<....> {
...
let AsmString = !if(some operator, !strconcat(ppc, "${s}", asm),
!strconcat(ppc, "${p}${s}", asm);
...
}
Thanks,
--
UGR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130831/735c84ce/attachment.html>
More information about the llvm-dev
mailing list