| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Operator.cpp | 169 auto *ConstOffset = dyn_cast<ConstantInt>(V); in accumulateConstantOffset() local 170 if (ConstOffset && ConstOffset->getType()->isIntegerTy()) { in accumulateConstantOffset() 171 if (ConstOffset->isZero()) in accumulateConstantOffset() 179 unsigned ElementIdx = ConstOffset->getZExtValue(); in accumulateConstantOffset() 188 if (!AccumulateOffset(ConstOffset->getValue(), in accumulateConstantOffset() 231 auto *ConstOffset = dyn_cast<ConstantInt>(V); in collectOffset() local 232 if (ConstOffset && ConstOffset->getType()->isIntegerTy()) { in collectOffset() 233 if (ConstOffset->isZero()) in collectOffset() 244 unsigned ElementIdx = ConstOffset->getZExtValue(); in collectOffset() 251 CollectConstantOffset(ConstOffset->getValue(), in collectOffset()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/ |
| H A D | AggressiveInstCombine.cpp | 965 auto [Stride, ConstOffset] = getStrideAndModOffsetOfGEP(PtrOp, DL); in foldPatternedLoads() 972 ConstOffset = APInt(BW, 0); in foldPatternedLoads() 976 Constant *Ca = ConstantFoldLoadFromConst(C, LoadTy, ConstOffset, DL); in foldPatternedLoads() 981 for (; ConstOffset.getZExtValue() <= E; ConstOffset += Stride) in foldPatternedLoads() 982 if (Ca != ConstantFoldLoadFromConst(C, LoadTy, ConstOffset, DL)) in foldPatternedLoads()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstructionSelector.cpp | 5348 int64_t ConstOffset; in selectFlatOffsetImpl() local 5349 std::tie(PtrBase, ConstOffset) = in selectFlatOffsetImpl() 5352 if (ConstOffset == 0 || (FlatVariant == SIInstrFlags::FlatScratch && in selectFlatOffsetImpl() 5357 if (!TII.isLegalFLATOffset(ConstOffset, AddrSpace, FlatVariant)) in selectFlatOffsetImpl() 5360 return std::pair(PtrBase, ConstOffset); in selectFlatOffsetImpl() 5398 int64_t ConstOffset; in selectGlobalSAddr() local 5403 std::tie(PtrBase, ConstOffset) = getPtrBaseWithConstantOffset(Addr, *MRI); in selectGlobalSAddr() 5405 if (ConstOffset != 0) { in selectGlobalSAddr() 5406 if (TII.isLegalFLATOffset(ConstOffset, AMDGPUAS::GLOBAL_ADDRESS, in selectGlobalSAddr() 5409 ImmOffset = ConstOffset; in selectGlobalSAddr() [all …]
|
| H A D | AMDGPUPromoteAlloca.cpp | 407 APInt ConstOffset(BW, 0); in GEPToVectorIndex() local 428 if (!CurGEP->collectOffset(DL, BW, VarOffsets, ConstOffset)) in GEPToVectorIndex() 443 APInt::udivrem(ConstOffset, VecElemSize, IndexQuot, Rem); in GEPToVectorIndex() 469 if (ConstOffset.isZero()) in GEPToVectorIndex()
|
| H A D | AMDGPURegisterBankInfo.cpp | 1907 unsigned ConstOffset) { in reinsertVectorIndexAdd() argument 1913 auto MaterializedOffset = B.buildConstant(S32, ConstOffset); in reinsertVectorIndexAdd() 2864 unsigned ConstOffset; in applyMappingImpl() local 2865 std::tie(BaseIdxReg, ConstOffset) = in applyMappingImpl() 2873 ConstOffset > 0 && in applyMappingImpl() 2874 ConstOffset < SrcTy.getNumElements(); in applyMappingImpl() 2904 reinsertVectorIndexAdd(B, MI, 2, ConstOffset); in applyMappingImpl() 2967 reinsertVectorIndexAdd(B, *IdxLo, 1, ConstOffset); in applyMappingImpl() 2995 unsigned ConstOffset; in applyMappingImpl() local 2996 std::tie(BaseIdxReg, ConstOffset) = in applyMappingImpl() [all …]
|
| H A D | AMDGPUISelDAGToDAG.cpp | 2759 if (ConstantSDNode *ConstOffset = dyn_cast<ConstantSDNode>(BaseOffset)) { in SelectDS_GWS() local 2765 ImmOffset = ConstOffset->getZExtValue(); in SelectDS_GWS()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | MachineIRBuilder.cpp | 465 auto ConstOffset = buildConstant(OffsetTy, Offset); in buildLoadFromOffset() local 466 auto Ptr = buildPtrAdd(PtrTy, BasePtr, ConstOffset); in buildLoadFromOffset()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVSymbolicOperands.td | 1031 defm ConstOffset : ImageOperandOperand<0x8, []>;
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | AttributorAttributes.cpp | 1581 for (const auto &ConstOffset : AssumedSet) { in collectConstantsForGEP() local 1583 CopyPerOffset.addToAll(ConstOffset.getSExtValue() * in collectConstantsForGEP()
|