Home
last modified time | relevance | path

Searched refs:DestAS (Results 1 – 25 of 28) sorted by relevance

12

/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.cpp368 unsigned DestAS) const { in isNoopAddrSpaceCast()
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/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/clang/include/clang/Sema/
H A DOverload.h1122 LangAS DestAS = LangAS::Default; variable
1245 LangAS getDestAS() { return DestAS; } in getDestAS()
1252 DestAS = AS; in setDestAS()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetMachine.h67 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
H A DAMDGPUTargetMachine.cpp773 unsigned DestAS) const { in isNoopAddrSpaceCast()
775 AMDGPU::isFlatGlobalAddrSpace(DestAS); in isNoopAddrSpaceCast()
H A DSIISelLowering.h354 bool isFreeAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
H A DAMDGPULegalizerInfo.cpp2315 unsigned DestAS = DstTy.getAddressSpace(); in legalizeAddrSpaceCast() local
2325 if (TM.isNoopAddrSpaceCast(SrcAS, DestAS)) { in legalizeAddrSpaceCast()
2331 (DestAS == AMDGPUAS::LOCAL_ADDRESS || in legalizeAddrSpaceCast()
2332 DestAS == AMDGPUAS::PRIVATE_ADDRESS)) { in legalizeAddrSpaceCast()
2342 unsigned NullVal = TM.getNullPointerValue(DestAS); in legalizeAddrSpaceCast()
2358 if (DestAS == AMDGPUAS::FLAT_ADDRESS && in legalizeAddrSpaceCast()
2381 auto FlatNull = B.buildConstant(DstTy, TM.getNullPointerValue(DestAS)); in legalizeAddrSpaceCast()
2392 if (DestAS == AMDGPUAS::CONSTANT_ADDRESS_32BIT && in legalizeAddrSpaceCast()
H A DR600ISelLowering.cpp950 unsigned DestAS = ASC->getDestAddressSpace(); in lowerADDRSPACECAST() local
953 return DAG.getConstant(TM.getNullPointerValue(DestAS), SL, VT); in lowerADDRSPACECAST()
H A DSIISelLowering.cpp1897 unsigned DestAS) const { in isFreeAddrSpaceCast()
1905 return TM.isNoopAddrSpaceCast(SrcAS, DestAS); in isFreeAddrSpaceCast()
7058 unsigned DestAS, SrcAS; in lowerADDRSPACECAST() local
7064 DestAS = ASC->getDestAddressSpace(); in lowerADDRSPACECAST()
7071 DestAS = Op->getConstantOperandVal(3); in lowerADDRSPACECAST()
7079 if (DestAS == AMDGPUAS::LOCAL_ADDRESS || in lowerADDRSPACECAST()
7080 DestAS == AMDGPUAS::PRIVATE_ADDRESS) { in lowerADDRSPACECAST()
7086 unsigned NullVal = TM.getNullPointerValue(DestAS); in lowerADDRSPACECAST()
7096 if (DestAS == AMDGPUAS::FLAT_ADDRESS) { in lowerADDRSPACECAST()
7128 if (DestAS == AMDGPUAS::CONSTANT_ADDRESS_32BIT && in lowerADDRSPACECAST()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDeclCXX.cpp123 auto DestAS = in EmitDeclDestroy() local
126 CGM.getLLVMContext(), CGM.getContext().getTargetAddressSpace(DestAS)); in EmitDeclDestroy()
128 if (DestAS == SrcAS) in EmitDeclDestroy()
H A DCGAtomic.cpp1052 auto DestAS = getContext().getTargetAddressSpace(LangAS::opencl_generic); in EmitAtomicExpr() local
1053 auto *DestType = llvm::PointerType::get(getLLVMContext(), DestAS); in EmitAtomicExpr()
H A DCGDecl.cpp2638 auto DestAS = getContext().getTargetAddressSpace(DestLangAS); in EmitParmDecl() local
2639 auto *T = llvm::PointerType::get(getLLVMContext(), DestAS); in EmitParmDecl()
/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/CodeGen/
H A DTargetLoweringBase.cpp895 unsigned DestAS) const { in isFreeAddrSpaceCast()
896 return TM.isNoopAddrSpaceCast(SrcAS, DestAS); in isFreeAddrSpaceCast()
H A DCodeGenPrepare.cpp4847 unsigned DestAS = AddrInst->getType()->getPointerAddressSpace(); in matchOperationAddr() local
4848 if (TLI.getTargetMachine().isNoopAddrSpaceCast(SrcAS, DestAS)) in matchOperationAddr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopIdiomRecognize.cpp1023 unsigned DestAS = DestPtr->getType()->getPointerAddressSpace(); in processLoopStridedStore() local
1029 Type *DestInt8PtrTy = Builder.getPtrTy(DestAS); in processLoopStridedStore()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h1309 unsigned SrcAS, unsigned DestAS)
1311 DestAddrSpace(DestAS) {}
H A DSelectionDAG.h1573 unsigned DestAS);
H A DTargetLowering.h2091 virtual bool isFreeAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeVectorTypes.cpp541 unsigned DestAS = AddrSpaceCastN->getDestAddressSpace(); in ScalarizeVecRes_ADDRSPACECAST() local
542 return DAG.getAddrSpaceCast(DL, DestVT, Op, SrcAS, DestAS); in ScalarizeVecRes_ADDRSPACECAST()
2514 unsigned DestAS = AddrSpaceCastN->getDestAddressSpace(); in SplitVecRes_ADDRSPACECAST() local
2515 Lo = DAG.getAddrSpaceCast(dl, LoVT, Lo, SrcAS, DestAS); in SplitVecRes_ADDRSPACECAST()
2516 Hi = DAG.getAddrSpaceCast(dl, HiVT, Hi, SrcAS, DestAS); in SplitVecRes_ADDRSPACECAST()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExpr.cpp2988 LangAS DestAS = DestRecordType.getAddressSpace(); in PerformObjectMemberConversion() local
2989 if (FromAS != DestAS) { in PerformObjectMemberConversion()
2993 Context.getAddrSpaceQualType(FromRecordTypeWithoutAS, DestAS); in PerformObjectMemberConversion()
7237 LangAS DestAS = DestTy->getPointeeType().getAddressSpace(); in PrepareScalarCast() local
7238 if (SrcAS != DestAS) in PrepareScalarCast()

12