16 #ifndef LLVM_CLANG_LIB_CODEGEN_CGOPENCLRUNTIME_H 17 #define LLVM_CLANG_LIB_CODEGEN_CGOPENCLRUNTIME_H 20 #include "llvm/ADT/DenseMap.h" 21 #include "llvm/IR/Type.h" 22 #include "llvm/IR/Value.h" 31 class CodeGenFunction;
C Language Family Type Representation.
The base class of the type hierarchy.
EnqueuedBlockInfo emitOpenCLEnqueuedBlock(CodeGenFunction &CGF, const Expr *E)
llvm::Value * BlockArg
Enqueued block kernel.
virtual llvm::Value * getPipeElemAlign(const Expr *PipeArg)
VarDecl - An instance of this class is created to represent a variable declaration or definition...
CodeGenFunction - This class organizes the per-function state that is used while generating LLVM code...
virtual ~CGOpenCLRuntime()
llvm::PointerType * getSamplerType(const Type *T)
virtual llvm::Type * convertOpenCLSpecificType(const Type *T)
Expr - This represents one expression.
const FunctionProtoType * T
llvm::DenseMap< const Expr *, EnqueuedBlockInfo > EnqueuedBlockMap
Maps block expression to block information.
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 LocalDecl...
virtual llvm::Value * getPipeElemSize(const Expr *PipeArg)
llvm::PointerType * SamplerTy
The l-value was considered opaque, so the alignment was determined from a type.
CGOpenCLRuntime(CodeGenModule &CGM)
This class organizes the cross-function state that is used while generating LLVM code.
Dataflow Directional Tag Classes.
Structure for enqueued block information.
virtual llvm::Type * getPipeType(const PipeType *T)
llvm::PointerType * getGenericVoidPointerType()