|
LLVM 24.0.0git
|
#include "SPIRVAuxDataHandler.h"#include "MCTargetDesc/SPIRVMCTargetDesc.h"#include "SPIRVSubtarget.h"#include "SPIRVUtils.h"#include "llvm/CodeGen/AsmPrinter.h"#include "llvm/IR/Attributes.h"#include "llvm/IR/Constants.h"#include "llvm/IR/Function.h"#include "llvm/IR/GlobalObject.h"#include "llvm/IR/GlobalVariable.h"#include "llvm/IR/LLVMContext.h"#include "llvm/IR/Metadata.h"#include "llvm/IR/Module.h"#include "llvm/MC/MCInst.h"#include "llvm/MC/MCStreamer.h"#include "llvm/Support/CommandLine.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/MathExtras.h"Go to the source code of this file.
Functions | |
| static bool | wasAvailableExternally (const GlobalObject *GO) |
| static bool | hasFunctionAuxData (const Module &M) |
| static bool | canUseForwardRefs (const SPIRV::ModuleAnalysisInfo &MAI) |
Variables | |
| static cl::opt< bool > | SPVPreserveAuxData ("spirv-preserve-auxdata", cl::desc("Preserve LLVM attributes and metadata as " "NonSemantic.AuxData ExtInst annotations (requires " "SPV_KHR_non_semantic_info)"), cl::Hidden, cl::init(false)) |
Definition at line 67 of file SPIRVAuxDataHandler.cpp.
References llvm::SmallSet< T, N, C >::contains(), llvm::SPIRV::RequirementHandler::getExtensions(), and llvm::SPIRV::ModuleAnalysisInfo::Reqs.
Referenced by llvm::SPIRVAuxDataHandler::emitAuxData(), and llvm::SPIRVAuxDataHandler::emitAuxDataStrings().
Definition at line 60 of file SPIRVAuxDataHandler.cpp.
References llvm::any_of(), and F.
Referenced by llvm::SPIRVAuxDataHandler::prepareModuleOutput().
|
static |
Definition at line 52 of file SPIRVAuxDataHandler.cpp.
References llvm::cast(), llvm::dyn_cast(), F, and SPIRV_WAS_AVAILABLE_EXTERNALLY_ATTR.
Referenced by llvm::SPIRVAuxDataHandler::SPIRVAuxDataHandler().
|
static |
Referenced by llvm::spirvPreserveAuxData().