I can use Integer::Type.get() to set the type of a parameter to integer. My question is how I can do this for char *? Thanks, Bo -- View this message in context: http://old.nabble.com/build-a-function-type-with-char-parameter-tp30650603p30650603.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
Anton Korobeynikov
2011-Jan-12 08:39 UTC
[LLVMdev] build a function type with char parameter
> I can use Integer::Type.get() to set the type of a parameter to integer. My > question is how I can do this for char *?It depends on your target, but usually char is just i8, thus char* is i8* -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
How should I create the parameter and pass it to CallInst::Create then? Thanks, Bo Anton Korobeynikov-2 wrote:> >> I can use Integer::Type.get() to set the type of a parameter to integer. >> My >> question is how I can do this for char *? > It depends on your target, but usually char is just i8, thus char* is i8* > > -- > With best regards, Anton Korobeynikov > Faculty of Mathematics and Mechanics, Saint Petersburg State University > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-- View this message in context: http://old.nabble.com/build-a-function-type-with-char-parameter-tp30650603p30654341.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
Seemingly Similar Threads
- [LLVMdev] build a function type with char parameter
- [LLVMdev] Patch: MSIL backend global pointers initialization
- [LLVMdev] Patch: MSIL backend global pointers initialization
- [LLVMdev] Patch: MSIL backend global pointers initialization
- [LLVMdev] Is llc broken for Cortex-A9 + neon ?