Home
last modified time | relevance | path

Searched refs:ConstantFoldLoadFromConst (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DConstantFolding.h149 Constant *ConstantFoldLoadFromConst(Constant *C, Type *Ty, const APInt &Offset,
154 Constant *ConstantFoldLoadFromConst(Constant *C, Type *Ty,
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp452 return ConstantFoldLoadFromConst(SrcVal, LoadTy, APInt(32, Offset), DL); in getConstantStoreValueForLoad()
579 return ConstantFoldLoadFromConst(Val, LoadTy, DL); in getConstantMemInstValueForLoad()
H A DEvaluator.cpp143 return ConstantFoldLoadFromConst(V->Val.get<Constant *>(), Ty, Offset, DL); in read()
233 return ConstantFoldLoadFromConst(GV->getInitializer(), Ty, Offset, DL); in ComputeLoadResult()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLoads.cpp514 return ConstantFoldLoadFromConst(C, AccessTy, DL); in getAvailableLoadStore()
H A DConstantFolding.cpp698 Constant *llvm::ConstantFoldLoadFromConst(Constant *C, Type *Ty, in ConstantFoldLoadFromConst() function in llvm
724 Constant *llvm::ConstantFoldLoadFromConst(Constant *C, Type *Ty, in ConstantFoldLoadFromConst() function in llvm
726 return ConstantFoldLoadFromConst(C, Ty, APInt(64, 0), DL); in ConstantFoldLoadFromConst()
737 if (Constant *Result = ConstantFoldLoadFromConst(GV->getInitializer(), Ty, in ConstantFoldLoadFromConstPtr()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DGlobalOpt.cpp319 if (auto *Value = ConstantFoldLoadFromConst(Init, Ty, Offset, DL)) { in CleanupConstantGlobalUsers()
493 Constant *NewInit = ConstantFoldLoadFromConst(OrigInit, Pair.second, in SRAGlobal()