Hello, I have a need to change the parameter type of llvm.lifetime.start/end intrinsic functions to get other defined type, but i do not want to replace the current definition of the intrinsic function with the new definition. Is there a way, to do such things for a specific target? If the only way to do this is to create a separate file for my target and write there a target specific definitions then I would appreciate if someone could describe me how I have to overload the existing intrinsic functions and how the compiler will differentiate which one to use? Thanks, Arsen -- View this message in context: http://llvm.1065342.n5.nabble.com/Related-to-the-LLVM-Intrinsic-functions-tp61461.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
Arsen Hakobyan wrote:> Hello, > > I have a need to change the parameter type of llvm.lifetime.start/end > intrinsic functions to get other defined type, but i do not want to replace > the current definition of the intrinsic function with the new definition. Is > there a way, to do such things for a specific target? > If the only way to do this is to create a separate file for my target and > write there a target specific definitions then I would appreciate if someone > could describe me how I have to overload the existing intrinsic functions > and how the compiler will differentiate which one to use?The intent is that you have a bitcast to i8* then pass that into llvm.lifetime.start/end, thus removing the need to do everything else you were just asking questions about. Is there any reason why this doesn't work? Nick
Thank you Nick. -- View this message in context: http://llvm.1065342.n5.nabble.com/Related-to-the-LLVM-Intrinsic-functions-tp61461p61529.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
Seemingly Similar Threads
- [LLVMdev] Related constant folding of floating point values
- [LLVMdev] Passing specific register for an Instruction in target description files.
- [LLVMdev] Related to the LLVM Intrinsic functions.
- [LLVMdev] Passing specific register for an Instruction in target description files.
- [LLVMdev] Tablegen: How to define a Pattern with multiple result instructions