Displaying 2 results from an estimated 2 matches for "castgepindices".
2014 Apr 22
2
[LLVMdev] InstCombine strips the inBounds attribute in GetElementPtr ConstantExpr
...r(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 inBounds attribute of the
original GEP.
FYI, the callstack is
#0 CastGEPIndices (Ops=..., ResultTy=0x2fb2850, TD=0x2fc8830,
TLI=0x2feb390)
at ConstantFolding.cpp:623
#1 0x0000000001892dd1 in llvm::ConstantFoldInstOperands (Opcode=29,
DestTy=0x2fb2850, Ops=..., TD=0x2fc8830, TLI=0x2feb390)
at ConstantFolding.cpp:1040
#2 0x0000000001892647 in ConstantFoldConsta...
2011 May 06
0
[LLVMdev] Question about linking llvm-mc when porting a new backend
...mpareInstOperands(unsigned int, llvm::Constant*,
llvm::Constant*, llvm::TargetData const*)in
libLLVMAnalysis.a(ConstantFolding.cpp.o)
llvm::ConstantFoldCompareInstOperands(unsigned int, llvm::Constant*,
llvm::Constant*, llvm::TargetData const*)in
libLLVMAnalysis.a(ConstantFolding.cpp.o)
CastGEPIndices(llvm::Constant* const*, unsigned int, llvm::Type
const*, llvm::TargetData const*)in libLLVMAnalysis.a(ConstantFolding.cpp.o)
llvm::ScalarEvolution::getEffectiveSCEVType(llvm::Type const*) constin
libLLVMAnalysis.a(ScalarEvolution.cpp.o)
llvm::ScalarEvolution::getOffsetOfExpr(llvm::Struc...