9#ifndef LLVM_LIB_TARGET_DIRECTX_DXILSIGNATUREANALYSIS_H
10#define LLVM_LIB_TARGET_DIRECTX_DXILSIGNATUREANALYSIS_H
74 return It ==
Entries.end() ? nullptr : &It->second;
89 std::unique_ptr<ModuleSignatureInfo> Info;
This file defines the DenseMap class.
This header defines various interfaces for pass management in LLVM.
StringSet - A set-like wrapper for the StringMap.
Defines the llvm::VersionTuple class, which represents a version in the form major[....
Represent the analysis usage information of a pass.
This is an important class for using LLVM in a threaded context.
A Module instance is used to store all the information related to an LLVM module.
A set of analyses that are preserved following a run of a transformation pass.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
StringSet - A wrapper for StringMap that provides set-like functionality.
Represents a version number in the form major[.minor[.subminor[.build]]].
ModuleSignatureInfo(ModuleSignatureInfo &&)=default
const EntrySignature * get(const Function *F) const
ModuleSignatureInfo & operator=(ModuleSignatureInfo &&)=default
void print(raw_ostream &OS, const Module &M) const
ModuleSignatureInfo(const ModuleSignatureInfo &)=delete
ModuleSignatureInfo()=default
DenseMap< const Function *, EntrySignature > Entries
ModuleSignatureInfo & operator=(const ModuleSignatureInfo &)=delete
SignatureAnalysisPrinter(raw_ostream &OS)
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
SignatureAnalysisWrapper()
bool runOnModule(Module &M) override
runOnModule - Virtual method overriden by subclasses to process the module being operated on.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
void releaseMemory() override
releaseMemory() - This member can be implemented by a pass if it wants to be able to release its memo...
void print(raw_ostream &OS, const Module *M) const override
print - Print out the internal state of the pass.
const ModuleSignatureInfo & getSignatureInfo() const
ModuleSignatureInfo Result
Result run(Module &M, ModuleAnalysisManager &AM)
This class implements an extremely fast bulk output stream that can only output to a stream.
This is an optimization pass for GlobalISel generic memory operations.
AnalysisManager< Module > ModuleAnalysisManager
Convenience typedef for the Module analysis manager.
A CRTP mix-in that provides informational APIs needed for analysis passes.
A special type used by analysis passes to provide an address that identifies that particular analysis...
A CRTP mix-in for passes that can be skipped.
SmallVector< hlsl::SemanticSignatureElement > Inputs
Triple::EnvironmentType Stage
void buildSignatures(mcdxbc::Signature &Input, mcdxbc::Signature &Output, VersionTuple ValidatorVersion) const
Append ISG1/OSG1 parameters to the supplied builders.
SmallVector< hlsl::SemanticSignatureElement > Outputs
void updatePSV(mcdxbc::PSVRuntimeInfo &PSV, VersionTuple ValidatorVersion) const
Append PSV signature elements and set vector extents, the dependency map, and stage-specific signatur...
MDTuple * getAsMetadata(LLVMContext &Ctx, VersionTuple ValidatorVersion) const
Return the DXIL input/output/patch-constant signature triple.
SmallVector< uint32_t > getDependencyState() const
Return the serialized dx.viewIdState words for this entry: input scalar count, output scalar count,...
SmallVector< uint32_t > InputOutputMap
void print(raw_ostream &OS) const