search for: __builtin_mt_scall

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

2010 Sep 10
0
[LLVMdev] Problem with a target-specific builtin definition
...ve 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 return value type to int, I'd have to change also instruction's definition in InstrInfo.td and the pattern to something like this: def SCALL : Instr_Ca...