Home
last modified time | relevance | path

Searched refs:ConstOffset (Results 1 – 8 of 8) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DOperator.cpp137 if (auto ConstOffset = dyn_cast<ConstantInt>(V)) { in accumulateConstantOffset() local
138 if (ConstOffset->isZero()) in accumulateConstantOffset()
146 unsigned ElementIdx = ConstOffset->getZExtValue(); in accumulateConstantOffset()
155 if (!AccumulateOffset(ConstOffset->getValue(), in accumulateConstantOffset()
197 if (auto ConstOffset = dyn_cast<ConstantInt>(V)) { in collectOffset() local
198 if (ConstOffset->isZero()) in collectOffset()
209 unsigned ElementIdx = ConstOffset->getZExtValue(); in collectOffset()
216 CollectConstantOffset(ConstOffset->getValue(), in collectOffset()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstructionSelector.cpp3903 int64_t ConstOffset; in selectFlatOffsetImpl() local
3904 std::tie(PtrBase, ConstOffset) = in selectFlatOffsetImpl()
3906 if (ConstOffset == 0) in selectFlatOffsetImpl()
3910 if (!TII.isLegalFLATOffset(ConstOffset, AddrSpace, FlatVariant)) in selectFlatOffsetImpl()
3913 return std::pair(PtrBase, ConstOffset); in selectFlatOffsetImpl()
3951 int64_t ConstOffset; in selectGlobalSAddr() local
3956 std::tie(PtrBase, ConstOffset) = getPtrBaseWithConstantOffset(Addr, *MRI); in selectGlobalSAddr()
3958 if (ConstOffset != 0) { in selectGlobalSAddr()
3959 if (TII.isLegalFLATOffset(ConstOffset, AMDGPUAS::GLOBAL_ADDRESS, in selectGlobalSAddr()
3962 ImmOffset = ConstOffset; in selectGlobalSAddr()
[all …]
H A DAMDGPUPromoteAlloca.cpp355 APInt ConstOffset(BW, 0); in GEPToVectorIndex() local
357 !GEP->collectOffset(DL, BW, VarOffsets, ConstOffset)) in GEPToVectorIndex()
368 if (!ConstOffset.isZero() || VarOffset.second != VecElemSize) in GEPToVectorIndex()
375 APInt::udivrem(ConstOffset, VecElemSize, Quot, Rem); in GEPToVectorIndex()
H A DAMDGPURegisterBankInfo.cpp1887 unsigned ConstOffset) { in reinsertVectorIndexAdd() argument
1893 auto MaterializedOffset = B.buildConstant(S32, ConstOffset); in reinsertVectorIndexAdd()
2682 unsigned ConstOffset; in applyMappingImpl() local
2683 std::tie(BaseIdxReg, ConstOffset) = in applyMappingImpl()
2691 ConstOffset > 0 && in applyMappingImpl()
2692 ConstOffset < SrcTy.getNumElements(); in applyMappingImpl()
2722 reinsertVectorIndexAdd(B, MI, 2, ConstOffset); in applyMappingImpl()
2785 reinsertVectorIndexAdd(B, *IdxLo, 1, ConstOffset); in applyMappingImpl()
2813 unsigned ConstOffset; in applyMappingImpl() local
2814 std::tie(BaseIdxReg, ConstOffset) = in applyMappingImpl()
[all …]
H A DAMDGPUISelDAGToDAG.cpp2428 if (ConstantSDNode *ConstOffset = dyn_cast<ConstantSDNode>(BaseOffset)) { in SelectDS_GWS() local
2434 ImmOffset = ConstOffset->getZExtValue(); in SelectDS_GWS()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp420 auto ConstOffset = buildConstant(OffsetTy, Offset); in buildLoadFromOffset() local
421 auto Ptr = buildPtrAdd(PtrTy, BasePtr, ConstOffset); in buildLoadFromOffset()
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVSymbolicOperands.td891 defm ConstOffset : ImageOperandOperand<0x8, []>;
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp1485 for (const auto &ConstOffset : AssumedSet) { in collectConstantsForGEP() local
1487 CopyPerOffset.addToAll(ConstOffset.getSExtValue() * in collectConstantsForGEP()