Go to the documentation of this file.
15 #ifndef LLVM_CLANG_LIB_CODEGEN_CGOPENCLRUNTIME_H
16 #define LLVM_CLANG_LIB_CODEGEN_CGOPENCLRUNTIME_H
20 #include "llvm/ADT/DenseMap.h"
21 #include "llvm/ADT/StringMap.h"
22 #include "llvm/IR/Type.h"
23 #include "llvm/IR/Value.h"
33 class CodeGenFunction;
97 llvm::Value *Block, llvm::Type *BlockTy);
llvm::DenseMap< const Expr *, EnqueuedBlockInfo > EnqueuedBlockMap
Maps block expression to block information.
llvm::PointerType * getSamplerType(const Type *T)
EnqueuedBlockInfo emitOpenCLEnqueuedBlock(CodeGenFunction &CGF, const Expr *E)
virtual llvm::Value * getPipeElemSize(const Expr *PipeArg)
llvm::Type * BlockTy
The first argument to enqueued block kernel.
The base class of the type hierarchy.
llvm::Function * Kernel
Block invoke function.
llvm::PointerType * SamplerTy
virtual llvm::Value * getPipeElemAlign(const Expr *PipeArg)
Represents a variable declaration or definition.
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...
llvm::Function * InvokeFunc
void recordBlockInfo(const BlockExpr *E, llvm::Function *InvokeF, llvm::Value *Block, llvm::Type *BlockTy)
Record invoke function and block literal emitted during normal codegen for a block expression.
llvm::Function * getInvokeFunction(const Expr *E)
CodeGenFunction - This class organizes the per-function state that is used while generating LLVM code...
This class organizes the cross-function state that is used while generating LLVM code.
BlockExpr - Adaptor class for mixing a BlockDecl with expressions.
Structure for enqueued block information.
virtual ~CGOpenCLRuntime()
virtual llvm::Type * convertOpenCLSpecificType(const Type *T)
virtual llvm::Type * getPipeType(const PipeType *T, StringRef Name, llvm::Type *&PipeTy)
llvm::StringMap< llvm::PointerType * > CachedTys
CGOpenCLRuntime(CodeGenModule &CGM)
llvm::PointerType * getPointerType(const Type *T, StringRef Name)
llvm::Value * BlockArg
Enqueued block kernel.
llvm::PointerType * getGenericVoidPointerType()
This represents one expression.