|
clang
5.0.0
|
Public Member Functions | |
| CGOpenCLRuntime (CodeGenModule &CGM) | |
| virtual | ~CGOpenCLRuntime () |
| virtual void | EmitWorkGroupLocalVarDecl (CodeGenFunction &CGF, const VarDecl &D) |
| Emit the IR required for a work-group-local variable declaration, and add an entry to CGF's LocalDeclMap for D. More... | |
| virtual llvm::Type * | convertOpenCLSpecificType (const Type *T) |
| virtual llvm::Type * | getPipeType () |
| llvm::PointerType * | getSamplerType () |
| virtual llvm::Value * | getPipeElemSize (const Expr *PipeArg) |
| virtual llvm::Value * | getPipeElemAlign (const Expr *PipeArg) |
Protected Attributes | |
| CodeGenModule & | CGM |
| llvm::Type * | PipeTy |
| llvm::PointerType * | SamplerTy |
Definition at line 32 of file CGOpenCLRuntime.h.
|
inline |
Definition at line 39 of file CGOpenCLRuntime.h.
|
virtual |
Definition at line 26 of file CGOpenCLRuntime.cpp.
|
virtual |
Definition at line 33 of file CGOpenCLRuntime.cpp.
References CGM, clang::serialized_diags::create(), clang::CodeGen::CodeGenModule::getContext(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::TargetInfo::getOpenCLImageAddrSpace(), getSamplerType(), clang::CodeGen::CodeGenModule::getTarget(), clang::ASTContext::getTargetAddressSpace(), and clang::Type::isOpenCLSpecificType().
Referenced by clang::CodeGen::CodeGenTypes::ConvertType().
|
virtual |
Emit the IR required for a work-group-local variable declaration, and add an entry to CGF's LocalDeclMap for D.
The base class does this using CodeGenFunction::EmitStaticVarDecl to emit an internal global for D.
Definition at line 28 of file CGOpenCLRuntime.cpp.
References clang::CodeGen::CodeGenFunction::EmitStaticVarDecl(), and clang::InternalLinkage.
Referenced by clang::CodeGen::CodeGenFunction::EmitVarDecl().
|
virtual |
Definition at line 97 of file CGOpenCLRuntime.cpp.
References CGM, clang::Type::getAs(), clang::CodeGen::CodeGenModule::getContext(), clang::PipeType::getElementType(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::Expr::getType(), clang::ASTContext::getTypeAlignInChars(), PipeTy, and clang::CodeGen::Type.
|
virtual |
Definition at line 87 of file CGOpenCLRuntime.cpp.
References CGM, clang::Type::getAs(), clang::CodeGen::CodeGenModule::getContext(), clang::PipeType::getElementType(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::Expr::getType(), clang::ASTContext::getTypeSizeInChars(), PipeTy, and clang::CodeGen::Type.
|
virtual |
Definition at line 67 of file CGOpenCLRuntime.cpp.
References CGM, clang::serialized_diags::create(), clang::CodeGen::CodeGenModule::getContext(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::ASTContext::getTargetAddressSpace(), clang::LangAS::opencl_global, and PipeTy.
Referenced by clang::CodeGen::CodeGenTypes::ConvertType().
| llvm::PointerType * CGOpenCLRuntime::getSamplerType | ( | ) |
Definition at line 78 of file CGOpenCLRuntime.cpp.
References CGM, clang::serialized_diags::create(), clang::CodeGen::CodeGenModule::getContext(), clang::CodeGen::CodeGenModule::getLLVMContext(), clang::ASTContext::getTargetAddressSpace(), clang::LangAS::opencl_constant, and SamplerTy.
Referenced by convertOpenCLSpecificType(), and clang::CodeGen::CodeGenModule::createOpenCLIntToSamplerConversion().
|
protected |
Definition at line 34 of file CGOpenCLRuntime.h.
Referenced by convertOpenCLSpecificType(), getPipeElemAlign(), getPipeElemSize(), getPipeType(), and getSamplerType().
|
protected |
Definition at line 35 of file CGOpenCLRuntime.h.
Referenced by getPipeElemAlign(), getPipeElemSize(), and getPipeType().
|
protected |
Definition at line 36 of file CGOpenCLRuntime.h.
Referenced by getSamplerType().
1.8.6