#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.
|
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 |
|
◆ 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.