search for: getinboundsgetelementptr

Displaying 9 results from an estimated 9 matches for "getinboundsgetelementptr".

2011 Feb 01
2
[LLVMdev] Convenience methods in ConstantExpr et al
...eateConstInBoundsGEP1_32 CreateConstGEP2_32 CreateConstInBoundsGEP2_32 CreateConstGEP1_64 CreateConstInBoundsGEP1_64 CreateConstGEP2_64 CreateConstInBoundsGEP2_64 CreateStructGEP All of which are very useful. However, ConstExpression only has: getGetElementPtr getGetElementPtr getInBoundsGetElementPtr getInBoundsGetElementPtr It would be nice if ConstantExpr's GEP-building methods used the same naming convention and had the same convenience methods as IRBuilder. (In fact, the naming convention between IRBuilder and the various Constants.h classes desperately needs to be reconciled, a poin...
2011 Feb 02
0
[LLVMdev] Convenience methods in ConstantExpr et al
...eConstInBoundsGEP2_32 > CreateConstGEP1_64 > CreateConstInBoundsGEP1_64 > CreateConstGEP2_64 > CreateConstInBoundsGEP2_64 > CreateStructGEP > > All of which are very useful. However, ConstExpression only has: > > getGetElementPtr > getGetElementPtr > getInBoundsGetElementPtr > getInBoundsGetElementPtr > > It would be nice if ConstantExpr's GEP-building methods used the same > naming convention and had the same convenience methods as IRBuilder. (In > fact, the naming convention between IRBuilder and the various Constants.h > classes desperately n...
2011 Feb 02
2
[LLVMdev] Convenience methods in ConstantExpr et al
...tGEP1_64 > CreateConstInBoundsGEP1_64 > CreateConstGEP2_64 > CreateConstInBoundsGEP2_64 > CreateStructGEP > > All of which are very useful. However, ConstExpression only has: > > getGetElementPtr > getGetElementPtr > getInBoundsGetElementPtr > getInBoundsGetElementPtr > > It would be nice if ConstantExpr's GEP-building methods used the > same naming convention and had the same convenience methods as > IRBuilder. (In fact, the naming convention between IRBuilder and the > various Constants.h...
2011 Feb 03
0
[LLVMdev] Convenience methods in ConstantExpr et al
...nstInBoundsGEP1_64 >> CreateConstGEP2_64 >> CreateConstInBoundsGEP2_64 >> CreateStructGEP >> >> All of which are very useful. However, ConstExpression only has: >> >> getGetElementPtr >> getGetElementPtr >> getInBoundsGetElementPtr >> getInBoundsGetElementPtr >> >> It would be nice if ConstantExpr's GEP-building methods used the >> same naming convention and had the same convenience methods as >> IRBuilder. (In fact, the naming convention between IRBuilder and the >> v...
2012 Jan 22
2
[LLVMdev] CreateGlobalStringPtr giving linker errors
...ms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1/libllvmgcc.dylib Undefined symbols for architecture x86_64: "llvm::ConstantExpr::getGetElementPtr(llvm::Constant*, llvm::ArrayRef<llvm::Value*>, bool)", referenced from: llvm::ConstantExpr::getInBoundsGetElementPtr(llvm::Constant*, llvm::ArrayRef<llvm::Value*>)in ccFB7xjg.o "llvm::GetElementPtrInst::getIndexedType(llvm::Type*, llvm::ArrayRef<llvm::Value*>)", referenced from: llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::ArrayRef<llvm::Value*>, unsigned int,...
2012 Jan 22
0
[LLVMdev] CreateGlobalStringPtr giving linker errors
.../Developer/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin10/4.2.1/libllvmgcc.dylib > Undefined symbols for architecture x86_64: > "llvm::ConstantExpr::getGetElementPtr(llvm::Constant*, > llvm::ArrayRef<llvm::Value*>, bool)", referenced from: > llvm::ConstantExpr::getInBoundsGetElementPtr(llvm::Constant*, > llvm::ArrayRef<llvm::Value*>)in ccFB7xjg.o > "llvm::GetElementPtrInst::getIndexedType(llvm::Type*, > llvm::ArrayRef<llvm::Value*>)", referenced from: > llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, > llvm::ArrayRef<llvm::...
2011 Feb 10
0
[LLVMdev] ConstantExpr::replaceUsesOfWithOnConstant() function for llvm::GetElementPtrConstantExpr
...inter, 2130 &Indices[0], Indices.size()); -------------------------------------------------------------------------------------------> modified 2129 if(cast<GEPOperator>(this)->isInBounds()) 2130 Replacement = ConstantExpr::getInBoundsGetElementPtr(Pointer, 2131 &Indices[0], Indices.size()); 2132 else 2133 Replacement = ConstantExpr::getGetElementPtr(Pointer, 2134 &Indices[0], Indices.size()); What do you think about above cod...
2012 Dec 29
2
[LLVMdev] GetElementPtrConstantExpr question
Hi all, I just come across an IR instruction like this: %0 = getelementptr i32* getelementptr inbounds ([42 x i32]* @aaa, i32 0, i32 0), i32 %2 What does the part "i32* getelementptr inbounds ([42 x i32]* @aaa, i32 0, i32 0)" mean? As far as I could understand this is a GetElementPtrConstantExpr, isn't it? My question is: how can I instantiate a class that represents that
2014 Apr 22
2
[LLVMdev] InstCombine strips the inBounds attribute in GetElementPtr ConstantExpr
I can't upload my program due to confidentiality, but the problem is obvious. At lib/Analysis/ConstantFolding.cpp:646 Constant *C = ConstantExpr::getGetElementPtr(Ops[0], NewIdxs); if (ConstantExpr *CE = dyn_cast<ConstantExpr>(C)) { if (Constant *Folded = ConstantFoldConstantExpression(CE, TD, TLI)) C = Folded; } The generated ConstantExpr C doesn't inherit the