[LLVMdev] How to get llvm inline asm operands type?
bluechristlove at 163.com
Sat Mar 21 08:57:54 PDT 2015
I am working at a project about inline asm of LLVM, but I meet one problem about asm operands. For example, I have code like this:
asm("nop": "=r"(a), "r"(b), "g"(30));
I can get asm string "nop" using llvm::InlineAssembly::getAsmString () function, and I also can get constraints "r r imr" information using llvm::InlineAsm::ParseConstraints function and iterate the return value. But my question is I can not get asm operands information, especially asm operarands type(a is integer type, b is interger type, 30 is constant int).
So does anybody know is there any way to get asm operands information?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev