Home
last modified time | relevance | path

Searched refs:getTargetAddressSpace (Results 1 – 25 of 35) sorted by relevance

12

/external/llvm-project/clang/lib/CodeGen/
DCGOpenCLRuntime.cpp38 uint32_t AddrSpc = CGM.getContext().getTargetAddressSpace( in convertOpenCLSpecificType()
84 CGM.getContext().getTargetAddressSpace( in getPipeType()
93 CGM.getContext().getTargetAddressSpace( in getSamplerType()
122 CGM.getContext().getTargetAddressSpace(LangAS::opencl_generic)); in getGenericVoidPointerType()
DCodeGenTypes.cpp626 unsigned AS = Context.getTargetAddressSpace(ETy); in ConvertType()
639 : Context.getTargetAddressSpace(ETy); in ConvertType()
741 unsigned AS = Context.getTargetAddressSpace(FTy); in ConvertType()
DCGDecl.cpp255 unsigned TargetAS = getContext().getTargetAddressSpace(AS); in getOrCreateStaticVarDecl()
285 LTy->getPointerTo(getContext().getTargetAddressSpace(ExpectedAS))); in getOrCreateStaticVarDecl()
361 CGM.getContext().getTargetAddressSpace(D.getType())); in AddInitializerToStaticVarDecl()
1123 getContext().getTargetAddressSpace(getStringLiteralAddressSpace()); in createUnnamedGlobalFrom()
2460 assert(getContext().getTargetAddressSpace(SrcLangAS) == in EmitParmDecl()
2462 auto DestAS = getContext().getTargetAddressSpace(DestLangAS); in EmitParmDecl()
DCGBlocks.cpp195 CGM.getLLVMContext(), C.getTargetAddressSpace(LangAS::opencl_constant)); in buildBlockDescriptor()
259 AddrSpace = C.getTargetAddressSpace(LangAS::opencl_constant); in buildBlockDescriptor()
456 CGM.getContext().getTargetAddressSpace(LangAS::opencl_generic); in initializeForBlockHeader()
803 CGM.getContext().getTargetAddressSpace(GenVoidPtrAddr)) / in EmitBlockLiteral()
1136 AddrSpace = getContext().getTargetAddressSpace(LangAS::opencl_constant); in getBlockDescriptorType()
1358 AddrSpace = CGM.getContext().getTargetAddressSpace(LangAS::opencl_global); in buildGlobalBlock()
1427 ? getContext().getTargetAddressSpace(LangAS::opencl_generic) in setBlockContextParameter()
DCodeGenModule.cpp2678 unsigned AS = getContext().getTargetAddressSpace(VD->getType()); in GetWeakRefReference()
3166 Context.getTargetAddressSpace(FD->getType())), in emitCPUDispatchDefinition()
3288 DeclTy, getContext().getTargetAddressSpace(FD->getType())), in GetOrCreateMultiVersionResolver()
3694 auto TargetAddrSpace = getContext().getTargetAddressSpace(AddrSpace); in GetOrCreateLLVMGlobal()
3816 assert(getContext().getTargetAddressSpace(ExpectedAS) == in GetOrCreateLLVMGlobal()
3909 llvm::PointerType::get(Ty, getContext().getTargetAddressSpace(ASTTy)); in GetAddrOfGlobalVar()
3923 Ty, getContext().getTargetAddressSpace(LangAS::opencl_global)) in CreateRuntimeVariable()
4023 CGM.getContext().getTargetAddressSpace(LangAS::Default))); in castStringLiteralToDefaultAddressSpace()
4205 getContext().getTargetAddressSpace(GetGlobalVarAddressSpace(D))) { in EmitGlobalVarDefinition()
4386 llvm::PointerType::get(Ty, getContext().getTargetAddressSpace(ASTTy)); in EmitExternalVarDeclaration()
[all …]
DCGDeclCXX.cpp125 CGM.getContext().getTargetAddressSpace(DestAS)); in EmitDeclDestroy()
196 unsigned ExpectedAddrSpace = getContext().getTargetAddressSpace(T); in EmitCXXGlobalVarDeclInit()
DCGOpenMPRuntimeGPU.cpp1108 CGM.getContext().getTargetAddressSpace(LangAS::cuda_shared)); in emitNonSPMDKernel()
1240 CGM.getContext().getTargetAddressSpace(LangAS::cuda_shared)); in emitSPMDKernel()
2856 unsigned SharedAddressSpace = C.getTargetAddressSpace(LangAS::cuda_shared); in emitInterWarpCopyFunction()
4146 CGF.getContext().getTargetAddressSpace(NativePointeeTy); in getParameterAddress()
4424 CGM.getContext().getTargetAddressSpace(AS)); in getAddressOfLocalVariable()
4429 GV, VarTy->getPointerTo(CGM.getContext().getTargetAddressSpace( in getAddressOfLocalVariable()
4546 return CGM.getContext().getTargetAddressSpace(LangAS::cuda_constant); in getDefaultFirstprivateAddressSpace()
4802 C.getTargetAddressSpace(LangAS::cuda_shared)); in clear()
DCGCall.cpp1586 unsigned addressSpace = Context.getTargetAddressSpace(ret); in GetFunctionType()
1610 unsigned AddressSpace = Context.getTargetAddressSpace(Ret); in GetFunctionType()
2126 if (getContext().getTargetAddressSpace(PTy) == 0 && in ConstructAttributeList()
2169 getContext().getTargetAddressSpace(FI.arg_begin()->type) == 0) { in ConstructAttributeList()
2289 if (getContext().getTargetAddressSpace(PTy) == 0 && in ConstructAttributeList()
2593 if (!getContext().getTargetAddressSpace(ETy) && in EmitFunctionProlog()
DCGDebugInfo.cpp1076 unsigned AddressSpace = CGM.getContext().getTargetAddressSpace(PointeeTy); in CreatePointerLikeType()
1568 unsigned AS = CGM.getContext().getTargetAddressSpace(PointeeTy); in getOrCreateInstanceMethodType()
4204 unsigned AddressSpace = CGM.getContext().getTargetAddressSpace(VD->getType()); in EmitDeclare()
4682 CGM.getContext().getTargetAddressSpace(D->getType()); in EmitGlobalVariable()
4686 CGM.getContext().getTargetAddressSpace(LangAS::cuda_shared); in EmitGlobalVariable()
4689 CGM.getContext().getTargetAddressSpace(LangAS::cuda_constant); in EmitGlobalVariable()
DCGExprConstant.cpp920 CGM.getContext().getTargetAddressSpace(addressSpace)); in tryEmitGlobalCompoundLiteral()
1440 CGM.getContext().getTargetAddressSpace(DestAddressSpace)); in getCurrentAddrPrivate()
DCGExpr.cpp89 auto DestAddrSpace = getContext().getTargetAddressSpace(LangAS::Default); in CreateTempAlloca()
411 CGF.getContext().getTargetAddressSpace(AS)); in createReferenceTemporary()
419 CGF.getContext().getTargetAddressSpace(LangAS::Default))); in createReferenceTemporary()
2705 VarTy, getContext().getTargetAddressSpace(VD->getType())); in EmitDeclRefLValue()
DTargetInfo.cpp8823 OrigLTy, /*FromAS=*/getContext().getTargetAddressSpace(LangAS::Default), in classifyKernelArgumentType()
8824 /*ToAS=*/getContext().getTargetAddressSpace(LangAS::cuda_device)); in classifyKernelArgumentType()
8837 getContext().getTargetAddressSpace(LangAS::opencl_constant), in classifyKernelArgumentType()
9069 Ctx.getTargetAddressSpace(LangAS::opencl_generic)); in getNullPointer()
9081 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global)); in getGlobalVarAddressSpace()
/external/clang/lib/CodeGen/
DCGOpenCLRuntime.cpp38 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global); in convertOpenCLSpecificType()
72 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global); in getPipeType()
DCodeGenTypes.cpp501 unsigned AS = Context.getTargetAddressSpace(ETy); in ConvertType()
511 unsigned AS = Context.getTargetAddressSpace(ETy); in ConvertType()
603 unsigned AS = Context.getTargetAddressSpace(FTy); in ConvertType()
DCodeGenModule.cpp1501 unsigned AS = getContext().getTargetAddressSpace(VD->getType()); in GetWeakRefReference()
2264 llvm::PointerType::get(Ty, getContext().getTargetAddressSpace(ASTTy)); in GetAddrOfGlobalVar()
2310 AddrSpace = getContext().getTargetAddressSpace(LangAS::cuda_constant); in GetGlobalVarAddressSpace()
2312 AddrSpace = getContext().getTargetAddressSpace(LangAS::cuda_shared); in GetGlobalVarAddressSpace()
2314 AddrSpace = getContext().getTargetAddressSpace(LangAS::cuda_device); in GetGlobalVarAddressSpace()
2468 GetGlobalVarAddressSpace(D, getContext().getTargetAddressSpace(ASTTy))) { in EmitGlobalVarDefinition()
3426 AddrSpace = CGM.getContext().getTargetAddressSpace(LangAS::opencl_constant); in GenerateStringLiteral()
3607 VD, getContext().getTargetAddressSpace(MaterializedType)); in GetAddrOfGlobalTemporary()
DCGDecl.cpp207 GetGlobalVarAddressSpace(&D, getContext().getTargetAddressSpace(Ty)); in getOrCreateStaticVarDecl()
239 unsigned ExpectedAddrSpace = getContext().getTargetAddressSpace(Ty); in getOrCreateStaticVarDecl()
323 CGM.getContext().getTargetAddressSpace(D.getType())); in AddInitializerToStaticVarDecl()
DCGDeclCXX.cpp162 unsigned ExpectedAddrSpace = getContext().getTargetAddressSpace(T); in EmitCXXGlobalVarDeclInit()
DCGCall.cpp1488 unsigned addressSpace = Context.getTargetAddressSpace(ret); in GetFunctionType()
1512 unsigned AddressSpace = Context.getTargetAddressSpace(Ret); in GetFunctionType()
1840 else if (getContext().getTargetAddressSpace(PTy) == 0) in ConstructAttributeList()
1956 else if (getContext().getTargetAddressSpace(PTy) == 0) in ConstructAttributeList()
2233 } else if (getContext().getTargetAddressSpace(ETy) == 0) { in EmitFunctionProlog()
2245 !getContext().getTargetAddressSpace(ArrTy->getElementType())) in EmitFunctionProlog()
DCodeGenFunction.cpp479 ASTCtx.getTargetAddressSpace(pointeeTy.getAddressSpace())))); in GenOpenCLArgMetadata()
517 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global); in GenOpenCLArgMetadata()
DCGExprConstant.cpp1036 CGM.getContext().getTargetAddressSpace(E->getType())); in EmitLValue()
DCGBuiltin.cpp2068 getContext().getTargetAddressSpace(LangAS::opencl_generic); in EmitBuiltinExpr()
2201 CGM.getContext().getTargetAddressSpace(LangAS::opencl_generic)); in EmitBuiltinExpr()
2203 CGM.getContext().getTargetAddressSpace( in EmitBuiltinExpr()
2286 EventTy->getPointerTo(CGM.getContext().getTargetAddressSpace(AS4)); in EmitBuiltinExpr()
2290 EventTy->getPointerTo(CGM.getContext().getTargetAddressSpace(AS5)); in EmitBuiltinExpr()
/external/clang/include/clang/AST/
DASTContext.h2200 unsigned getTargetAddressSpace(QualType T) const { in getTargetAddressSpace() function
2201 return getTargetAddressSpace(T.getQualifiers()); in getTargetAddressSpace()
2204 unsigned getTargetAddressSpace(Qualifiers Q) const { in getTargetAddressSpace() function
2205 return getTargetAddressSpace(Q.getAddressSpace()); in getTargetAddressSpace()
2208 unsigned getTargetAddressSpace(unsigned AS) const { in getTargetAddressSpace() function
/external/llvm-project/clang/include/clang/AST/
DASTContext.h2590 unsigned getTargetAddressSpace(QualType T) const { in getTargetAddressSpace() function
2591 return getTargetAddressSpace(T.getQualifiers()); in getTargetAddressSpace()
2594 unsigned getTargetAddressSpace(Qualifiers Q) const { in getTargetAddressSpace() function
2595 return getTargetAddressSpace(Q.getAddressSpace()); in getTargetAddressSpace()
2598 unsigned getTargetAddressSpace(LangAS AS) const;
/external/llvm-project/clang/lib/AST/
DASTContext.cpp2132 AS = getTargetAddressSpace( in getTypeInfoImpl()
2170 AS = getTargetAddressSpace(cast<BlockPointerType>(T)->getPointeeType()); in getTypeInfoImpl()
2178 AS = getTargetAddressSpace(cast<ReferenceType>(T)->getPointeeType()); in getTypeInfoImpl()
2183 AS = getTargetAddressSpace(cast<PointerType>(T)->getPointeeType()); in getTypeInfoImpl()
2331 Width = Target->getPointerWidth(getTargetAddressSpace(LangAS::opencl_global)); in getTypeInfoImpl()
2332 Align = Target->getPointerAlign(getTargetAddressSpace(LangAS::opencl_global)); in getTypeInfoImpl()
11148 unsigned ASTContext::getTargetAddressSpace(LangAS AS) const { in getTargetAddressSpace() function in ASTContext
/external/clang/lib/AST/
DASTContext.cpp1699 unsigned AS = getTargetAddressSpace( in getTypeInfoImpl()
1709 unsigned AS = getTargetAddressSpace( in getTypeInfoImpl()
1716 unsigned AS = getTargetAddressSpace(cast<PointerType>(T)->getPointeeType()); in getTypeInfoImpl()
2584 ArySize.zextOrTrunc(Target->getPointerWidth(getTargetAddressSpace(EltTy))); in getConstantArrayType()

12