Closed RReverser closed 8 years ago
Should those be inserted with special API which is not exposed (and thus require insertion with unsafe { ... } & llvm-sys) or is there a way to insert them using existing Builder APIs?
unsafe { ... }
llvm-sys
Found a way - you just need to perform module.add_function with desired intrinsic name and parameter/return types, and then use as any other.
module.add_function
Should those be inserted with special API which is not exposed (and thus require insertion with
unsafe { ... }
&llvm-sys
) or is there a way to insert them using existing Builder APIs?