/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 | 368 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 D | X86TargetMachine.h | 78 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
|
/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/clang/include/clang/Sema/ |
H A D | Overload.h | 1122 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 D | AMDGPUTargetMachine.h | 67 bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
|
H A D | AMDGPUTargetMachine.cpp | 773 unsigned DestAS) const { in isNoopAddrSpaceCast() 775 AMDGPU::isFlatGlobalAddrSpace(DestAS); in isNoopAddrSpaceCast()
|
H A D | SIISelLowering.h | 354 bool isFreeAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const override;
|
H A D | AMDGPULegalizerInfo.cpp | 2315 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 D | R600ISelLowering.cpp | 950 unsigned DestAS = ASC->getDestAddressSpace(); in lowerADDRSPACECAST() local 953 return DAG.getConstant(TM.getNullPointerValue(DestAS), SL, VT); in lowerADDRSPACECAST()
|
H A D | SIISelLowering.cpp | 1897 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 D | CGDeclCXX.cpp | 123 auto DestAS = in EmitDeclDestroy() local 126 CGM.getLLVMContext(), CGM.getContext().getTargetAddressSpace(DestAS)); in EmitDeclDestroy() 128 if (DestAS == SrcAS) in EmitDeclDestroy()
|
H A D | CGAtomic.cpp | 1052 auto DestAS = getContext().getTargetAddressSpace(LangAS::opencl_generic); in EmitAtomicExpr() local 1053 auto *DestType = llvm::PointerType::get(getLLVMContext(), DestAS); in EmitAtomicExpr()
|
H A D | CGDecl.cpp | 2638 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 D | TargetMachine.h | 330 virtual bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const { in isNoopAddrSpaceCast() argument
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | TargetLoweringBase.cpp | 895 unsigned DestAS) const { in isFreeAddrSpaceCast() 896 return TM.isNoopAddrSpaceCast(SrcAS, DestAS); in isFreeAddrSpaceCast()
|
H A D | CodeGenPrepare.cpp | 4847 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 D | LoopIdiomRecognize.cpp | 1023 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 D | SelectionDAGNodes.h | 1309 unsigned SrcAS, unsigned DestAS) 1311 DestAddrSpace(DestAS) {}
|
H A D | SelectionDAG.h | 1573 unsigned DestAS);
|
H A D | TargetLowering.h | 2091 virtual bool isFreeAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const;
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | LegalizeVectorTypes.cpp | 541 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 D | SemaExpr.cpp | 2988 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()
|