class TargetCodeGenInfo::TargetOpenCLBlockHelper

Declaration

class TargetCodeGenInfo::TargetOpenCLBlockHelper { /* full declaration omitted */ };

Description

Interface class for filling custom fields of a block literal for OpenCL.

Declared at: clang/lib/CodeGen/TargetInfo.h:304

Method Overview

Methods

TargetOpenCLBlockHelper()

Declared at: clang/lib/CodeGen/TargetInfo.h:307

virtual bool areAllCustomFieldValuesConstant(
    const clang::CodeGen::CGBlockInfo& Info)

Declared at: clang/lib/CodeGen/TargetInfo.h:314

Parameters

const clang::CodeGen::CGBlockInfo& Info

virtual llvm::SmallVector<llvm::Type*, 1>
getCustomFieldTypes()

Description

Get the custom field types for OpenCL blocks.

Declared at: clang/lib/CodeGen/TargetInfo.h:310

virtual llvm::SmallVector<ValueTy, 1>
getCustomFieldValues(
    clang::CodeGen::CodeGenFunction& CGF,
    const clang::CodeGen::CGBlockInfo& Info)

Description

Get the custom field values for OpenCL blocks.

Declared at: clang/lib/CodeGen/TargetInfo.h:313

Parameters

clang::CodeGen::CodeGenFunction& CGF
const clang::CodeGen::CGBlockInfo& Info

virtual llvm::SmallVector<llvm::Constant*, 1>
getCustomFieldValues(
    clang::CodeGen::CodeGenModule& CGM,
    const clang::CodeGen::CGBlockInfo& Info)

Description

Get the custom field values for OpenCL blocks if all values are LLVM constants.

Declared at: clang/lib/CodeGen/TargetInfo.h:318

Parameters

clang::CodeGen::CodeGenModule& CGM
const clang::CodeGen::CGBlockInfo& Info

virtual ~TargetOpenCLBlockHelper()

Declared at: clang/lib/CodeGen/TargetInfo.h:308