search for: int_mt_scall

Displaying 1 result from an estimated 1 matches for "int_mt_scall".

2010 Sep 10
0
[LLVMdev] Problem with a target-specific builtin definition
...t that this instruction takes just the syscall number as immediate. It returns one int value in a register specified in the ABI for return values. So I have defined this instruction in InstrInfo.td as follows: def SCALL : Instr_Calls<(outs), (ins i32imm:$a), "scall $a", [(int_mt_scall sysnumber:$a)]>; The problem is with defining the intrinsic. If I define it in Clang (and with similar types in LLVM) as follows: BUILTIN(__builtin_mt_scall, "vi", "") I cannot use the return value in C code: if ( __builtin_mt_scall(127) == 0 ) do_something(); If I set the...