LLVM 20.0.0git
Macros | Functions | Variables
SPIRVTargetMachine.cpp File Reference
#include "SPIRVTargetMachine.h"
#include "SPIRV.h"
#include "SPIRVCallLowering.h"
#include "SPIRVGlobalRegistry.h"
#include "SPIRVLegalizerInfo.h"
#include "SPIRVStructurizerWrapper.h"
#include "SPIRVTargetObjectFile.h"
#include "SPIRVTargetTransformInfo.h"
#include "TargetInfo/SPIRVTargetInfo.h"
#include "llvm/CodeGen/GlobalISel/IRTranslator.h"
#include "llvm/CodeGen/GlobalISel/InstructionSelect.h"
#include "llvm/CodeGen/GlobalISel/Legalizer.h"
#include "llvm/CodeGen/GlobalISel/RegBankSelect.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
#include "llvm/CodeGen/TargetPassConfig.h"
#include "llvm/InitializePasses.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Pass.h"
#include "llvm/Passes/PassBuilder.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Transforms/Scalar/Reg2Mem.h"
#include "llvm/Transforms/Utils.h"
#include <optional>
#include "llvm/Passes/TargetPassRegistry.inc"

Go to the source code of this file.

Macros

#define GET_PASS_REGISTRY   "SPIRVPassRegistry.def"
 

Functions

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSPIRVTarget ()
 
static std::string computeDataLayout (const Triple &TT)
 
static Reloc::Model getEffectiveRelocModel (std::optional< Reloc::Model > RM)
 

Variables

static cl::opt< boolSPVEnableNonSemanticDI ("spv-emit-nonsemantic-debug-info", cl::desc("Emit SPIR-V NonSemantic.Shader.DebugInfo.100 instructions"), cl::Optional, cl::init(false))
 

Macro Definition Documentation

◆ GET_PASS_REGISTRY

#define GET_PASS_REGISTRY   "SPIRVPassRegistry.def"

Function Documentation

◆ computeDataLayout()

static std::string computeDataLayout ( const Triple TT)
static

Definition at line 53 of file SPIRVTargetMachine.cpp.

References llvm::Triple::spirv32.

◆ getEffectiveRelocModel()

static Reloc::Model getEffectiveRelocModel ( std::optional< Reloc::Model RM)
static

Definition at line 71 of file SPIRVTargetMachine.cpp.

References llvm::Reloc::PIC_.

◆ LLVMInitializeSPIRVTarget()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSPIRVTarget ( )

Variable Documentation

◆ SPVEnableNonSemanticDI

cl::opt< bool > SPVEnableNonSemanticDI("spv-emit-nonsemantic-debug-info", cl::desc("Emit SPIR-V NonSemantic.Shader.DebugInfo.100 instructions"), cl::Optional, cl::init(false)) ( "spv-emit-nonsemantic-debug-info"  ,
cl::desc("Emit SPIR-V NonSemantic.Shader.DebugInfo.100 instructions")  ,
cl::Optional  ,
cl::init(false)   
)
static