Home
last modified time | relevance | path

Searched refs:SrcAS (Results 1 – 25 of 39) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp43 unsigned SrcAS = cast<PointerType>(SrcAddr->getType())->getAddressSpace(); in createMemCpyLoopKnownSize() local
48 Ctx, CopyLen, SrcAS, DstAS, SrcAlign.value(), DstAlign.value(), in createMemCpyLoopKnownSize()
114 SrcAS, DstAS, SrcAlign.value(), in createMemCpyLoopKnownSize()
196 unsigned SrcAS = cast<PointerType>(SrcAddr->getType())->getAddressSpace(); in createMemCpyLoopUnknownSize() local
200 Ctx, CopyLen, SrcAS, DstAS, SrcAlign.value(), DstAlign.value(), in createMemCpyLoopUnknownSize()
554 unsigned SrcAS = SrcAddr->getType()->getPointerAddressSpace(); in expandMemMoveAsLoop() local
556 if (SrcAS != DstAS) { in expandMemMoveAsLoop()
557 if (!TTI.addrspacesMayAlias(SrcAS, DstAS)) { in expandMemMoveAsLoop()
575 if (TTI.isValidAddrSpaceCast(DstAS, SrcAS)) in expandMemMoveAsLoop()
577 else if (TTI.isValidAddrSpaceCast(SrcAS, DstAS)) in expandMemMoveAsLoop()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsTargetMachine.h71 /// Returns true if a cast between SrcAS and DestAS is a noop.
72 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override { in isNoopAddrSpaceCast() argument
76 return SrcAS < 256 && DestAS < 256; in isNoopAddrSpaceCast()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetMachine.cpp367 bool X86TargetMachine::isNoopAddrSpaceCast(unsigned SrcAS, in isNoopAddrSpaceCast() argument
369 assert(SrcAS != DestAS && "Expected different address spaces!"); in isNoopAddrSpaceCast()
370 if (getPointerSize(SrcAS) != getPointerSize(DestAS)) in isNoopAddrSpaceCast()
372 return SrcAS < 256 && DestAS < 256; in isNoopAddrSpaceCast()
H A DX86TargetMachine.h78 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUAttributor.cpp117 static bool castRequiresQueuePtr(unsigned SrcAS) { in castRequiresQueuePtr() argument
118 return SrcAS == AMDGPUAS::LOCAL_ADDRESS || SrcAS == AMDGPUAS::PRIVATE_ADDRESS; in castRequiresQueuePtr()
208 unsigned SrcAS = CE->getOperand(0)->getType()->getPointerAddressSpace(); in visitConstExpr() local
209 return castRequiresQueuePtr(SrcAS); in visitConstExpr()
563 unsigned SrcAS = static_cast<AddrSpaceCastInst &>(I).getSrcAddressSpace(); in checkForQueuePtr() local
564 if (castRequiresQueuePtr(SrcAS)) { in checkForQueuePtr()
H A DAMDGPUTargetMachine.h67 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
H A DAMDGPUCodeGenPrepare.cpp2069 const unsigned SrcAS = I.getSrcAddressSpace(); in visitAddrSpaceCastInst() local
2073 if (SrcAS == AMDGPUAS::FLAT_ADDRESS) in visitAddrSpaceCastInst()
2077 CanLower = (SrcAS == AMDGPUAS::LOCAL_ADDRESS || in visitAddrSpaceCastInst()
2078 SrcAS == AMDGPUAS::PRIVATE_ADDRESS); in visitAddrSpaceCastInst()
2085 return isPtrKnownNeverNull(V, *DL, *TM, SrcAS); in visitAddrSpaceCastInst()
H A DAMDGPUTargetMachine.cpp772 bool AMDGPUTargetMachine::isNoopAddrSpaceCast(unsigned SrcAS, in isNoopAddrSpaceCast() argument
774 return AMDGPU::isFlatGlobalAddrSpace(SrcAS) && in isNoopAddrSpaceCast()
H A DAMDGPULegalizerInfo.cpp2316 unsigned SrcAS = SrcTy.getAddressSpace(); in legalizeAddrSpaceCast() local
2325 if (TM.isNoopAddrSpaceCast(SrcAS, DestAS)) { in legalizeAddrSpaceCast()
2330 if (SrcAS == AMDGPUAS::FLAT_ADDRESS && in legalizeAddrSpaceCast()
2335 if (isa<GIntrinsic>(MI) || isKnownNonNull(Src, MRI, TM, SrcAS)) { in legalizeAddrSpaceCast()
2359 (SrcAS == AMDGPUAS::LOCAL_ADDRESS || in legalizeAddrSpaceCast()
2360 SrcAS == AMDGPUAS::PRIVATE_ADDRESS)) { in legalizeAddrSpaceCast()
2361 Register ApertureReg = getSegmentAperture(SrcAS, MRI, B); in legalizeAddrSpaceCast()
2374 if (isa<GIntrinsic>(MI) || isKnownNonNull(Src, MRI, TM, SrcAS)) { in legalizeAddrSpaceCast()
2380 auto SegmentNull = B.buildConstant(SrcTy, TM.getNullPointerValue(SrcAS)); in legalizeAddrSpaceCast()
2400 if (SrcAS == AMDGPUAS::CONSTANT_ADDRESS_32BIT && in legalizeAddrSpaceCast()
H A DSIISelLowering.h354 bool isFreeAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
H A DSIISelLowering.cpp1445 unsigned SrcAS = I.getOperand(0)->getType()->getPointerAddressSpace(); in CollectTargetIntrinsicOperands() local
1447 Ops.push_back(DAG.getTargetConstant(SrcAS, SDLoc(), MVT::i32)); in CollectTargetIntrinsicOperands()
1896 bool SITargetLowering::isFreeAddrSpaceCast(unsigned SrcAS, in isFreeAddrSpaceCast() argument
1900 if (SrcAS == AMDGPUAS::FLAT_ADDRESS) in isFreeAddrSpaceCast()
1905 return TM.isNoopAddrSpaceCast(SrcAS, DestAS); in isFreeAddrSpaceCast()
7058 unsigned DestAS, SrcAS; in lowerADDRSPACECAST() local
7062 SrcAS = ASC->getSrcAddressSpace(); in lowerADDRSPACECAST()
7070 SrcAS = Op->getConstantOperandVal(2); in lowerADDRSPACECAST()
7078 if (SrcAS == AMDGPUAS::FLAT_ADDRESS) { in lowerADDRSPACECAST()
7083 if (IsNonNull || isKnownNonNull(Op, DAG, TM, SrcAS)) in lowerADDRSPACECAST()
[all …]
H A DR600ISelLowering.cpp949 unsigned SrcAS = ASC->getSrcAddressSpace(); in lowerADDRSPACECAST() local
952 if (isNullConstant(Op.getOperand(0)) && SrcAS == AMDGPUAS::FLAT_ADDRESS) in lowerADDRSPACECAST()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetMachine.h53 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DstAS) const override;
H A DRISCVTargetMachine.cpp268 bool RISCVTargetMachine::isNoopAddrSpaceCast(unsigned SrcAS, in isNoopAddrSpaceCast() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCTargetMachine.h75 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override { in isNoopAddrSpaceCast() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetMachine.h67 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override { in isNoopAddrSpaceCast() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetMachine.h83 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override { in isNoopAddrSpaceCast() argument
/freebsd/contrib/llvm-project/llvm/include/llvm/Target/
H A DTargetMachine.h330 virtual bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const { in isNoopAddrSpaceCast() argument
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DInferAddressSpaces.cpp1094 unsigned SrcAS = C->getType()->getPointerAddressSpace(); in isSafeToCastConstAddrSpace() local
1095 if (SrcAS == NewAS || isa<UndefValue>(C)) in isSafeToCastConstAddrSpace()
1099 if (SrcAS != FlatAddrSpace && NewAS != FlatAddrSpace) in isSafeToCastConstAddrSpace()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDeclCXX.cpp127 auto SrcAS = D.getType().getQualifiers().getAddressSpace(); in EmitDeclDestroy() local
128 if (DestAS == SrcAS) in EmitDeclDestroy()
H A DCGExprCXX.cpp110 LangAS SrcAS = ThisTy.getAddressSpace(); in EmitCXXDestructorCall() local
112 if (SrcAS != DstAS) { in EmitCXXDestructorCall()
115 This = getTargetHooks().performAddrSpaceCast(*this, This, SrcAS, DstAS, in EmitCXXDestructorCall()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineLoadStoreAlloca.cpp251 PointerReplacer(InstCombinerImpl &IC, Instruction &Root, unsigned SrcAS) in PointerReplacer() argument
252 : IC(IC), Root(Root), FromAS(SrcAS) {} in PointerReplacer()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.h494 const MemOp &Op, unsigned DstAS, unsigned SrcAS,
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringBase.cpp894 bool TargetLoweringBase::isFreeAddrSpaceCast(unsigned SrcAS, in isFreeAddrSpaceCast() argument
896 return TM.isNoopAddrSpaceCast(SrcAS, DestAS); in isFreeAddrSpaceCast()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h1309 unsigned SrcAS, unsigned DestAS)
1310 : SDNode(ISD::ADDRSPACECAST, Order, dl, VTs), SrcAddrSpace(SrcAS),

12