clang 20.0.0git
Classes | Namespaces | Macros
CGHLSLRuntime.h File Reference
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/IntrinsicsDirectX.h"
#include "llvm/IR/IntrinsicsSPIRV.h"
#include "clang/Basic/Builtins.h"
#include "clang/Basic/HLSLRuntime.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Frontend/HLSL/HLSLResource.h"
#include <optional>
#include <vector>

Go to the source code of this file.

Classes

class  clang::CodeGen::CGHLSLRuntime
 
struct  clang::CodeGen::CGHLSLRuntime::BufferResBinding
 
struct  clang::CodeGen::CGHLSLRuntime::Buffer
 

Namespaces

namespace  llvm
 Diagnostic wrappers for TextAPI types for error reporting.
 
namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
namespace  clang::CodeGen
 

Macros

#define GENERATE_HLSL_INTRINSIC_FUNCTION(FunctionName, IntrinsicPostfix)
 

Macro Definition Documentation

◆ GENERATE_HLSL_INTRINSIC_FUNCTION

#define GENERATE_HLSL_INTRINSIC_FUNCTION (   FunctionName,
  IntrinsicPostfix 
)
Value:
llvm::Intrinsic::ID get##FunctionName##Intrinsic() { \
llvm::Triple::ArchType Arch = getArch(); \
switch (Arch) { \
case llvm::Triple::dxil: \
return llvm::Intrinsic::dx_##IntrinsicPostfix; \
case llvm::Triple::spirv: \
return llvm::Intrinsic::spv_##IntrinsicPostfix; \
default: \
llvm_unreachable("Intrinsic " #IntrinsicPostfix \
" not supported by target architecture"); \
} \
}

Definition at line 35 of file CGHLSLRuntime.h.