Home
last modified time | relevance | path

Searched refs:VariableOffsets (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpTableToSwitch.cpp59 SmallMapVector<Value *, APInt, 4> VariableOffsets; in parseJumpTable() local
61 if (!GEP->collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) in parseJumpTable()
63 if (VariableOffsets.size() != 1) in parseJumpTable()
68 APInt StrideBytes = VariableOffsets.front().second; in parseJumpTable()
77 JumpTable.Index = VariableOffsets.front().first; in parseJumpTable()
H A DConstraintElimination.cpp398 SmallMapVector<Value *, APInt, 4> VariableOffsets; member
416 if (!GEP.collectOffset(DL, BitWidth, Result.VariableOffsets, in collectOffsets()
428 if (!CanCollectInner || Result.VariableOffsets.size() > 1 || in collectOffsets()
430 (Result.VariableOffsets.size() >= 1 && VariableOffsets2.size() >= 1)) { in collectOffsets()
436 if (Result.VariableOffsets.size() == 0 && VariableOffsets2.size() == 1) in collectOffsets()
437 Result.VariableOffsets = VariableOffsets2; in collectOffsets()
462 const auto &[BasePtr, ConstantOffset, VariableOffsets, NW] = in decomposeGEP()
470 for (auto [Index, Scale] : VariableOffsets) { in decomposeGEP()
H A DGVN.cpp432 SmallMapVector<Value *, APInt, 4> VariableOffsets; in createGEPExpr() local
434 if (GEP->collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) { in createGEPExpr()
441 for (const auto &[V, Scale] : VariableOffsets) { in createGEPExpr()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILFlattenArrays.cpp47 SmallMapVector<Value *, APInt, 4> VariableOffsets; member
259 DL, BitWidth, Info.VariableOffsets, Info.ConstantOffset); in visitGetElementPtrInst()
271 for (auto &VariableOffset : PGEPInfo.VariableOffsets) in visitGetElementPtrInst()
272 Info.VariableOffsets.insert(VariableOffset); in visitGetElementPtrInst()
321 for (auto [VarIndex, Multiplier] : Info.VariableOffsets) { in visitGetElementPtrInst()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp210 SmallMapVector<Value *, APInt, 4> &VariableOffsets, in collectOffset() argument
264 auto *It = VariableOffsets.insert({V, APInt(BitWidth, 0)}).first; in collectOffset()
H A DInstructions.cpp1658 SmallMapVector<Value *, APInt, 4> &VariableOffsets, in collectOffset() argument
1661 return cast<GEPOperator>(this)->collectOffset(DL, BitWidth, VariableOffsets, in collectOffset()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h551 SmallMapVector<Value *, APInt, 4> &VariableOffsets,
H A DInstructions.h1141 SmallMapVector<Value *, APInt, 4> &VariableOffsets,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp2442 SmallMapVector<Value *, APInt, 4> VariableOffsets; in getSalvageOpsForGEP() local
2444 if (!GEP->collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) in getSalvageOpsForGEP()
2446 if (!VariableOffsets.empty() && !CurrentLocOps) { in getSalvageOpsForGEP()
2450 for (const auto &Offset : VariableOffsets) { in getSalvageOpsForGEP()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp1538 SmallMapVector<Value *, APInt, 4> VariableOffsets; in collectConstantsForGEP() local
1545 if (!GEP->collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) { in collectConstantsForGEP()
1551 << (VariableOffsets.empty() ? "" : "not") << " constant " in collectConstantsForGEP()
1560 for (const auto &VI : VariableOffsets) { in collectConstantsForGEP()