Dear all, I'm using IntrinsicLowering class to remove all intrinsics in LLVM byte-code. Unfortunately, I meet several problems: 1. Why I can not get the type of CallInst *CI? !CI->getType()->isVoidTy() is not working and how to solve it? This type information has some impacts with intrinsics such as flt_rounds. 2. Why Intrinsic::vastart and Intrinsic::powi are excluded from IntrinsicLowering function? There are no way to lower them at the byte-code level? Best regards, -- Hao Shen
Duncan Sands
2010-Jun-07 19:47 UTC
[LLVMdev] IntrinsicLowering and several related problems
Hi Hao Shen,> 1. Why I can not get the type of CallInst *CI? > !CI->getType()->isVoidTy() is not working and how to solve it?what does "not working" mean? It should work.> 2. Why Intrinsic::vastart and Intrinsic::powi are excluded from > IntrinsicLowering function? > There are no way to lower them at the byte-code level?For vastart, it probably isn't possible at the byte-code level. For powi, my guess is that it is a mistake and should be lowered. Ciao, Duncan.
On Mon, Jun 7, 2010 at 9:47 PM, Duncan Sands <baldrick at free.fr> wrote:> Hi Hao Shen, > >> 1. Why I can not get the type of CallInst *CI? >> !CI->getType()->isVoidTy() is not working and how to solve it? > > what does "not working" mean? It should work.Here CI->getType()->isVoidTy() always returns true and it should be true sometimes?> >> 2. Why Intrinsic::vastart and Intrinsic::powi are excluded from >> IntrinsicLowering function? >> There are no way to lower them at the byte-code level? > > For vastart, it probably isn't possible at the byte-code level.>From what I understand, the vastart will be compiled into somestack operations realized with assembly code. So there will be no byte-code level things?> For powi, my guess is that it is a mistake and should be lowered.Thanks a lot, I will try to find why powi is not working.> > Ciao, > > Duncan. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-- Hao Shen
Apparently Analagous Threads
- [LLVMdev] IntrinsicLowering and several related problems
- [LLVMdev] [RFC/PATCH] IntrinsicLowering improvements
- [LLVMdev] Why function pointer is different from other data type?
- [LLVMdev] Why function pointer is different from other data type?
- [LLVMdev] Why function pointer is different from other data type?