[LLVMdev] How to declare intrinsic that takes pointer to routine?
Robison, Arch
arch.robison at intel.com
Thu Apr 30 14:19:44 PDT 2015
Suppose I want to define an intrinsic that takes a pointer to a routine. E.g., an intrinsic version of qsort, or for argument's sake, an intrinsic form for this hypothetical routine:
void* foobitize(void thunk(void*,void*));
How do I defined the intrinsic in llvm/IR/Intrinsics.td ? It looks like I need to define a new class, but I'm lost about what I need to do. There doesn't seem to be any prior examples of intrinsics that take pointers to routines.
This not something I'm planning to submit as a commit; it's just part of an experiment.
- Arch D. Robison
More information about the llvm-dev
mailing list