Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUAnnotateKernelFeatures.cpp88 static bool castRequiresQueuePtr(unsigned SrcAS) { in castRequiresQueuePtr() argument
89 return SrcAS == AMDGPUAS::LOCAL_ADDRESS || SrcAS == AMDGPUAS::PRIVATE_ADDRESS; in castRequiresQueuePtr()
98 unsigned SrcAS = CE->getOperand(0)->getType()->getPointerAddressSpace(); in visitConstantExpr() local
99 return castRequiresQueuePtr(SrcAS); in visitConstantExpr()
DAMDGPULegalizerInfo.cpp1264 unsigned SrcAS = SrcTy.getAddressSpace(); in legalizeAddrSpaceCast() local
1274 if (ST.getTargetLowering()->isNoopAddrSpaceCast(SrcAS, DestAS)) { in legalizeAddrSpaceCast()
1286 if (SrcAS == AMDGPUAS::CONSTANT_ADDRESS_32BIT) { in legalizeAddrSpaceCast()
1300 if (SrcAS == AMDGPUAS::FLAT_ADDRESS) { in legalizeAddrSpaceCast()
1321 if (SrcAS != AMDGPUAS::LOCAL_ADDRESS && SrcAS != AMDGPUAS::PRIVATE_ADDRESS) in legalizeAddrSpaceCast()
1328 B.buildConstant(SrcTy, TM.getNullPointerValue(SrcAS)); in legalizeAddrSpaceCast()
1332 Register ApertureReg = getSegmentAperture(SrcAS, MRI, B); in legalizeAddrSpaceCast()
DSIISelLowering.h272 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
273 bool isFreeAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
DSIISelLowering.cpp1341 bool SITargetLowering::isNoopAddrSpaceCast(unsigned SrcAS, in isNoopAddrSpaceCast() argument
1343 return isFlatGlobalAddrSpace(SrcAS) && isFlatGlobalAddrSpace(DestAS); in isNoopAddrSpaceCast()
1353 bool SITargetLowering::isFreeAddrSpaceCast(unsigned SrcAS, in isFreeAddrSpaceCast() argument
1357 if (SrcAS == AMDGPUAS::FLAT_ADDRESS) in isFreeAddrSpaceCast()
1360 return isNoopAddrSpaceCast(SrcAS, DestAS); in isFreeAddrSpaceCast()
4748 unsigned SrcAS = ASC->getSrcAddressSpace(); in lowerADDRSPACECAST() local
4750 if (SrcAS == AMDGPUAS::LOCAL_ADDRESS || in lowerADDRSPACECAST()
4751 SrcAS == AMDGPUAS::PRIVATE_ADDRESS) { in lowerADDRSPACECAST()
4752 unsigned NullVal = TM.getNullPointerValue(SrcAS); in lowerADDRSPACECAST()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLowerMemIntrinsics.cpp46 unsigned SrcAS = cast<PointerType>(SrcAddr->getType())->getAddressSpace(); in createMemCpyLoopKnownSize() local
60 PointerType *SrcOpType = PointerType::get(LoopOpType, SrcAS); in createMemCpyLoopKnownSize()
111 PointerType *SrcPtrType = PointerType::get(OpTy, SrcAS); in createMemCpyLoopKnownSize()
154 unsigned SrcAS = cast<PointerType>(SrcAddr->getType())->getAddressSpace(); in createMemCpyLoopUnknownSize() local
156 PointerType *SrcOpType = PointerType::get(LoopOpType, SrcAS); in createMemCpyLoopUnknownSize()
231 ResBuilder.CreateBitCast(SrcAddr, PointerType::get(Int8Type, SrcAS)); in createMemCpyLoopUnknownSize()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DInferAddressSpaces.cpp834 unsigned SrcAS = C->getType()->getPointerAddressSpace(); in isSafeToCastConstAddrSpace() local
835 if (SrcAS == NewAS || isa<UndefValue>(C)) in isSafeToCastConstAddrSpace()
839 if (SrcAS != FlatAddrSpace && NewAS != FlatAddrSpace) in isSafeToCastConstAddrSpace()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsISelLowering.h369 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override { in isNoopAddrSpaceCast() argument
373 return SrcAS < 256 && DestAS < 256; in isNoopAddrSpaceCast()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DTargetLowering.h1647 virtual bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const { in isNoopAddrSpaceCast() argument
1654 virtual bool isFreeAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const { in isFreeAddrSpaceCast() argument
1655 return isNoopAddrSpaceCast(SrcAS, DestAS); in isFreeAddrSpaceCast()
3098 unsigned DstAS, unsigned SrcAS,
DSelectionDAG.h1189 SDValue getAddrSpaceCast(const SDLoc &dl, EVT VT, SDValue Ptr, unsigned SrcAS,
DSelectionDAGNodes.h1275 unsigned SrcAS, unsigned DestAS);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMISelLowering.h485 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override { in isNoopAddrSpaceCast() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64ISelLowering.h352 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override { in isNoopAddrSpaceCast() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCISelLowering.h1000 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override { in isNoopAddrSpaceCast() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DConstantFolding.cpp1346 unsigned SrcAS = SrcPtr->getType()->getPointerAddressSpace(); in ConstantFoldCastOperand() local
1347 if (SrcAS == DestTy->getPointerAddressSpace()) in ConstantFoldCastOperand()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86ISelLowering.h1234 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
DX86ISelLowering.cpp2551 bool X86TargetLowering::isNoopAddrSpaceCast(unsigned SrcAS, in isNoopAddrSpaceCast() argument
2553 assert(SrcAS != DestAS && "Expected different address spaces!"); in isNoopAddrSpaceCast()
2556 if (TM.getPointerSize(SrcAS) != TM.getPointerSize(DestAS)) in isNoopAddrSpaceCast()
2559 return SrcAS < 256 && DestAS < 256; in isNoopAddrSpaceCast()
28474 unsigned SrcAS = N->getSrcAddressSpace(); in LowerADDRSPACECAST() local
28476 assert(SrcAS != N->getDestAddressSpace() && in LowerADDRSPACECAST()
28479 if (SrcAS == X86AS::PTR32_UPTR && DstVT == MVT::i64) { in LowerADDRSPACECAST()
29576 unsigned SrcAS = CastN->getSrcAddressSpace(); in ReplaceNodeResults() local
29578 assert(SrcAS != CastN->getDestAddressSpace() && in ReplaceNodeResults()
29582 if (SrcAS == X86AS::PTR32_UPTR && DstVT == MVT::i64) in ReplaceNodeResults()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DCombinerHelper.cpp860 bool AllowOverlap, unsigned DstAS, unsigned SrcAS, in findGISelOptimalMemOpLowering() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstants.cpp1694 unsigned SrcAS = S->getType()->getPointerAddressSpace(); in getPointerCast() local
1695 if (Ty->isPtrOrPtrVectorTy() && SrcAS != Ty->getPointerAddressSpace()) in getPointerCast()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp1904 unsigned SrcAS, unsigned DestAS) { in getAddrSpaceCast() argument
1908 ID.AddInteger(SrcAS); in getAddrSpaceCast()
1916 VT, SrcAS, DestAS); in getAddrSpaceCast()
8973 EVT VT, unsigned SrcAS, in AddrSpaceCastSDNode() argument
8976 SrcAddrSpace(SrcAS), DestAddrSpace(DestAS) {} in AddrSpaceCastSDNode()
DSelectionDAGBuilder.cpp3547 unsigned SrcAS = SV->getType()->getPointerAddressSpace(); in visitAddrSpaceCast() local
3550 if (!TLI.isNoopAddrSpaceCast(SrcAS, DestAS)) in visitAddrSpaceCast()
3551 N = DAG.getAddrSpaceCast(getCurSDLoc(), DestVT, N, SrcAS, DestAS); in visitAddrSpaceCast()
7359 unsigned SrcAS = RHS->getType()->getPointerAddressSpace(); in visitMemCmpCall() local
7361 !TLI.allowsMisalignedMemoryAccesses(LVT, SrcAS) || in visitMemCmpCall()
DTargetLowering.cpp187 unsigned DstAS, unsigned SrcAS, in findOptimalMemOpLowering() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp4184 unsigned SrcAS in matchOperationAddr() local
4187 if (TLI.isNoopAddrSpaceCast(SrcAS, DestAS)) in matchOperationAddr()