search for: customop

Displaying 5 results from an estimated 5 matches for "customop".

2007 Aug 03
1
[LLVMdev] Adding intrinsic with variable argument list HOWTO.
...een hitting my head to wall two days now. This is practically my first contact with InstrInfo.td files. Is there any tutorial how to make this kind of stuff? Or should I just keep on studying Sparc and other backends? So I added new intrinsic to llvm/include/llvm/TCEInstrinsics.td: def int_tce_customop : Intrinsic<[llvm_void_ty, llvm_ptr_ty, llvm_vararg_ty], [], "llvm.tce.customop">; I made opt pass that converts __custom_op() functions to calls to llvm.tce.customop calls. shell> grep llvm.tce.customop hello2.ll tail call void (i8*, ...)* @llvm.tce.customop( i8...
2007 Jul 31
3
[LLVMdev] Adding custom operation intrinsic for ASIP architectures.
...m operation intrinsic and optimization pass for raising certain type of function calls to those intrinsics (similar to raising mallocs). Basically our custom operation are like calls, with operand name and multiple inputs and outputs. e.g. C code: __llvm__custom_op_add(a,b,c) would be raised to customop add(i32 %tmp1, i32 %tmp24 , i32 %tmp25). Those "__llvm__custom_op_" prefixed function will not have function body, but pure declarations in C code level. Comments are welcome, especially if there anyone else, that needs this kind of functionality or if people has already implemented s...
2007 Aug 01
0
[LLVMdev] Adding custom operation intrinsic for ASIP architectures.
...optimization > pass for raising certain type of function calls to those intrinsics > (similar to raising mallocs). > > Basically our custom operation are like calls, with operand name and > multiple inputs and outputs. e.g. C code: > __llvm__custom_op_add(a,b,c) would be raised to customop add(i32 %tmp1, > i32 %tmp24 , i32 %tmp25). Those "__llvm__custom_op_" prefixed function > will not have function body, but pure declarations in C code level. > > Comments are welcome, especially if there anyone else, that needs this > kind of functionality or if people has...
2007 Aug 01
1
[LLVMdev] Adding custom operation intrinsic for ASIP architectures.
...(that invoke certain custom instructions through inline assembly) to LLVM parlance. Let's study this more closely. > > Basically our custom operation are like calls, with operand name and > multiple inputs and outputs. e.g. C code: > __llvm__custom_op_add(a,b,c) would be raised to customop add(i32 %tmp1, > i32 %tmp24 , i32 %tmp25). Those "__llvm__custom_op_" prefixed function > will not have function body, but pure declarations in C code level. What is the mechanism to first insert the __llvm__custom_op IR operations? Are these automatically decided by the code selec...
2007 Aug 01
2
[LLVMdev] Adding custom operation intrinsic for ASIP architectures.
...ss for raising certain type of function calls to those intrinsics >> (similar to raising mallocs). >> >> Basically our custom operation are like calls, with operand name and >> multiple inputs and outputs. e.g. C code: >> __llvm__custom_op_add(a,b,c) would be raised to customop add(i32 %tmp1, >> i32 %tmp24 , i32 %tmp25). Those "__llvm__custom_op_" prefixed function >> will not have function body, but pure declarations in C code level. >> >> Comments are welcome, especially if there anyone else, that needs this >> kind of functionali...