/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LowerMemIntrinsics.cpp | 43 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 D | MipsTargetMachine.h | 71 /// 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 D | X86TargetMachine.cpp | 367 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 D | X86TargetMachine.h | 78 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUAttributor.cpp | 117 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 D | AMDGPUTargetMachine.h | 67 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
|
H A D | AMDGPUCodeGenPrepare.cpp | 2069 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 D | AMDGPUTargetMachine.cpp | 772 bool AMDGPUTargetMachine::isNoopAddrSpaceCast(unsigned SrcAS, in isNoopAddrSpaceCast() argument 774 return AMDGPU::isFlatGlobalAddrSpace(SrcAS) && in isNoopAddrSpaceCast()
|
H A D | AMDGPULegalizerInfo.cpp | 2316 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 D | SIISelLowering.h | 354 bool isFreeAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
|
H A D | SIISelLowering.cpp | 1445 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 D | R600ISelLowering.cpp | 949 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 D | RISCVTargetMachine.h | 53 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DstAS) const override;
|
H A D | RISCVTargetMachine.cpp | 268 bool RISCVTargetMachine::isNoopAddrSpaceCast(unsigned SrcAS, in isNoopAddrSpaceCast() argument
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCTargetMachine.h | 75 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override { in isNoopAddrSpaceCast() argument
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64TargetMachine.h | 67 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override { in isNoopAddrSpaceCast() argument
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMTargetMachine.h | 83 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override { in isNoopAddrSpaceCast() argument
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Target/ |
H A D | TargetMachine.h | 330 virtual bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const { in isNoopAddrSpaceCast() argument
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | InferAddressSpaces.cpp | 1094 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 D | CGDeclCXX.cpp | 127 auto SrcAS = D.getType().getQualifiers().getAddressSpace(); in EmitDeclDestroy() local 128 if (DestAS == SrcAS) in EmitDeclDestroy()
|
H A D | CGExprCXX.cpp | 110 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 D | InstCombineLoadStoreAlloca.cpp | 251 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 D | SystemZISelLowering.h | 494 const MemOp &Op, unsigned DstAS, unsigned SrcAS,
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | TargetLoweringBase.cpp | 894 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 D | SelectionDAGNodes.h | 1309 unsigned SrcAS, unsigned DestAS) 1310 : SDNode(ISD::ADDRSPACECAST, Order, dl, VTs), SrcAddrSpace(SrcAS),
|