-
Notifications
You must be signed in to change notification settings - Fork 14.7k
[DXIL] Add support for root signature flag element in DXContainer #123147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 66 commits
8adb678
ba78f21
0a54559
557075f
e0d3dcd
80587dd
be3764d
7582ca6
6aaa0a5
916b2f1
d9bce0a
e7676ed
a0cee57
1e7a1fe
0ed658a
932062e
628937c
1378c9f
e3206c9
f93d42d
25e3f37
751cbdc
44532d6
ca21878
987901c
0fbe900
b771aea
aabdfe7
4f6f941
a7f7784
bf3b2e0
16b4d03
e043370
57bf935
1f8c0a5
0905b83
77e8544
1351fb0
09e645a
5a44b62
d1a79b3
9f8e512
5c7ed7e
93f7c4c
5aac761
47b01f7
486ab88
852ac25
74f7226
7a82fa9
c67d039
e80ef33
ef1ce8a
b7f2716
83b0979
b175b65
01b49a7
7bba9d3
2809c2f
023dcb8
aedb446
39e60c0
3b135c6
ae3d03f
3d19f8b
5a3be7c
f64c608
a5a2093
5b3fedc
605f225
e4bca2b
825673f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -254,11 +254,9 @@ Error DirectX::RootSignature::parse(StringRef Data) { | |
support::endian::read<uint32_t, llvm::endianness::little>(Current); | ||
Current += sizeof(uint32_t); | ||
|
||
Expected<uint32_t> MaybeVersion = | ||
dxbc::RootSignatureValidations::validateVersion(VValue); | ||
if (Error E = MaybeVersion.takeError()) | ||
return E; | ||
Version = MaybeVersion.get(); | ||
if (!dxbc::RootSignatureValidations::isValidVersion(VValue)) | ||
return make_error<GenericBinaryError>("Invalid Root Signature Version"); | ||
Version = VValue; | ||
|
||
NumParameters = | ||
support::endian::read<uint32_t, llvm::endianness::little>(Current); | ||
|
@@ -280,11 +278,9 @@ Error DirectX::RootSignature::parse(StringRef Data) { | |
support::endian::read<uint32_t, llvm::endianness::little>(Current); | ||
Current += sizeof(uint32_t); | ||
|
||
Expected<uint32_t> MaybeFlag = | ||
dxbc::RootSignatureValidations::validateRootFlag(FValue); | ||
if (Error E = MaybeFlag.takeError()) | ||
return E; | ||
Flags = MaybeFlag.get(); | ||
if (!dxbc::RootSignatureValidations::isValidRootFlag(FValue)) | ||
return make_error<GenericBinaryError>("Invalid Root Signature flag"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same feedback as above, we can make this a useful error. |
||
Flags = FValue; | ||
|
||
return Error::success(); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ add_llvm_target(DirectXCodeGen | |
DXILResourceAccess.cpp | ||
DXILShaderFlags.cpp | ||
DXILTranslateMetadata.cpp | ||
|
||
DXILRootSignature.cpp | ||
LINK_COMPONENTS | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please keep the blank line between the sources and the LINK_COMPONENTS line - it makes this easier to read. |
||
Analysis | ||
AsmPrinter | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#include "DXILRootSignature.h" | ||
#include "DXILShaderFlags.h" | ||
#include "DirectX.h" | ||
#include "llvm/ADT/SmallVector.h" | ||
|
@@ -23,9 +24,11 @@ | |
#include "llvm/IR/Module.h" | ||
#include "llvm/InitializePasses.h" | ||
#include "llvm/MC/DXContainerPSVInfo.h" | ||
#include "llvm/MC/DXContainerRootSignature.h" | ||
#include "llvm/Pass.h" | ||
#include "llvm/Support/MD5.h" | ||
#include "llvm/Transforms/Utils/ModuleUtils.h" | ||
#include <optional> | ||
|
||
using namespace llvm; | ||
using namespace llvm::dxil; | ||
|
@@ -41,6 +44,7 @@ class DXContainerGlobals : public llvm::ModulePass { | |
GlobalVariable *buildSignature(Module &M, Signature &Sig, StringRef Name, | ||
StringRef SectionName); | ||
void addSignature(Module &M, SmallVector<GlobalValue *> &Globals); | ||
void addRootSignature(Module &M, SmallVector<GlobalValue *> &Globals); | ||
void addResourcesForPSV(Module &M, PSVRuntimeInfo &PSV); | ||
void addPipelineStateValidationInfo(Module &M, | ||
SmallVector<GlobalValue *> &Globals); | ||
|
@@ -60,6 +64,7 @@ class DXContainerGlobals : public llvm::ModulePass { | |
void getAnalysisUsage(AnalysisUsage &AU) const override { | ||
AU.setPreservesAll(); | ||
AU.addRequired<ShaderFlagsAnalysisWrapper>(); | ||
AU.addRequired<RootSignatureAnalysisWrapper>(); | ||
AU.addRequired<DXILMetadataAnalysisWrapperPass>(); | ||
AU.addRequired<DXILResourceTypeWrapperPass>(); | ||
AU.addRequired<DXILResourceBindingWrapperPass>(); | ||
|
@@ -73,6 +78,7 @@ bool DXContainerGlobals::runOnModule(Module &M) { | |
Globals.push_back(getFeatureFlags(M)); | ||
Globals.push_back(computeShaderHash(M)); | ||
addSignature(M, Globals); | ||
addRootSignature(M, Globals); | ||
addPipelineStateValidationInfo(M, Globals); | ||
appendToCompilerUsed(M, Globals); | ||
return true; | ||
|
@@ -144,6 +150,28 @@ void DXContainerGlobals::addSignature(Module &M, | |
Globals.emplace_back(buildSignature(M, OutputSig, "dx.osg1", "OSG1")); | ||
} | ||
|
||
void DXContainerGlobals::addRootSignature(Module &M, | ||
SmallVector<GlobalValue *> &Globals) { | ||
|
||
auto &RSA = getAnalysis<RootSignatureAnalysisWrapper>(); | ||
|
||
if (!RSA.getResult()) | ||
return; | ||
|
||
const ModuleRootSignature &MRS = RSA.getResult().value(); | ||
SmallString<256> Data; | ||
raw_svector_ostream OS(Data); | ||
|
||
RootSignatureHeader RSH; | ||
RSH.Flags = MRS.Flags; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we have an auxilliary structure that we simply copy through here? Could RootSignatureAnalysis just provide us with a aside: Both |
||
|
||
RSH.write(OS); | ||
|
||
Constant *Constant = | ||
ConstantDataArray::getString(M.getContext(), Data, /*AddNull*/ false); | ||
Globals.emplace_back(buildContainerGlobal(M, Constant, "dx.rts0", "RTS0")); | ||
} | ||
|
||
void DXContainerGlobals::addResourcesForPSV(Module &M, PSVRuntimeInfo &PSV) { | ||
const DXILBindingMap &DBM = | ||
getAnalysis<DXILResourceBindingWrapperPass>().getBindingMap(); | ||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,215 @@ | ||||||||||||||||
//===- DXILRootSignature.cpp - DXIL Root Signature helper objects ----===// | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I counted this right
Suggested change
|
||||||||||||||||
// | ||||||||||||||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||||||||||||||
// See https://llvm.org/LICENSE.txt for license information. | ||||||||||||||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||||||||||||||
// | ||||||||||||||||
//===----------------------------------------------------------------------===// | ||||||||||||||||
/// | ||||||||||||||||
/// \file This file contains helper objects and APIs for working with DXIL | ||||||||||||||||
/// Root Signatures. | ||||||||||||||||
/// | ||||||||||||||||
//===----------------------------------------------------------------------===// | ||||||||||||||||
#include "DXILRootSignature.h" | ||||||||||||||||
#include "DirectX.h" | ||||||||||||||||
#include "llvm/ADT/StringSwitch.h" | ||||||||||||||||
#include "llvm/ADT/Twine.h" | ||||||||||||||||
#include "llvm/Analysis/DXILMetadataAnalysis.h" | ||||||||||||||||
#include "llvm/BinaryFormat/DXContainer.h" | ||||||||||||||||
#include "llvm/IR/Constants.h" | ||||||||||||||||
#include "llvm/IR/DiagnosticInfo.h" | ||||||||||||||||
#include "llvm/IR/Function.h" | ||||||||||||||||
#include "llvm/IR/LLVMContext.h" | ||||||||||||||||
#include "llvm/IR/Metadata.h" | ||||||||||||||||
#include "llvm/IR/Module.h" | ||||||||||||||||
#include "llvm/InitializePasses.h" | ||||||||||||||||
#include "llvm/Pass.h" | ||||||||||||||||
#include "llvm/Support/Error.h" | ||||||||||||||||
#include "llvm/Support/ErrorHandling.h" | ||||||||||||||||
#include <optional> | ||||||||||||||||
|
||||||||||||||||
using namespace llvm; | ||||||||||||||||
using namespace llvm::dxil; | ||||||||||||||||
|
||||||||||||||||
static bool reportError(LLVMContext *Ctx, Twine Message, | ||||||||||||||||
DiagnosticSeverity Severity = DS_Error) { | ||||||||||||||||
Ctx->diagnose(DiagnosticInfoGeneric(Message, Severity)); | ||||||||||||||||
return true; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
static bool parseRootFlags(LLVMContext *Ctx, ModuleRootSignature *MRS, | ||||||||||||||||
MDNode *RootFlagNode) { | ||||||||||||||||
|
||||||||||||||||
if (RootFlagNode->getNumOperands() != 2) | ||||||||||||||||
return reportError(Ctx, "Invalid format for RootFlag Element"); | ||||||||||||||||
|
||||||||||||||||
auto *Flag = mdconst::extract<ConstantInt>(RootFlagNode->getOperand(1)); | ||||||||||||||||
MRS->Flags = Flag->getZExtValue(); | ||||||||||||||||
|
||||||||||||||||
return false; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
static bool parseRootSignatureElement(LLVMContext *Ctx, | ||||||||||||||||
ModuleRootSignature *MRS, | ||||||||||||||||
MDNode *Element) { | ||||||||||||||||
MDString *ElementText = cast<MDString>(Element->getOperand(0)); | ||||||||||||||||
if (ElementText == nullptr) | ||||||||||||||||
return reportError(Ctx, "Invalid format for Root Element"); | ||||||||||||||||
|
||||||||||||||||
RootSignatureElementKind ElementKind = | ||||||||||||||||
StringSwitch<RootSignatureElementKind>(ElementText->getString()) | ||||||||||||||||
.Case("RootFlags", RootSignatureElementKind::RootFlags) | ||||||||||||||||
.Default(RootSignatureElementKind::None); | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should |
||||||||||||||||
|
||||||||||||||||
switch (ElementKind) { | ||||||||||||||||
|
||||||||||||||||
case RootSignatureElementKind::RootFlags: | ||||||||||||||||
return parseRootFlags(Ctx, MRS, Element); | ||||||||||||||||
case RootSignatureElementKind::None: | ||||||||||||||||
return reportError(Ctx, | ||||||||||||||||
"Invalid Root Element: " + ElementText->getString()); | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: let's be clear about what we're talking about.
Suggested change
|
||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
llvm_unreachable("Root signature element kind not expected."); | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wording nit: This isn't "unexpected" - it should be impossible if folks are reading compiler warnings. I might say "Unhandled RootSignatureElementKind enum" here. |
||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
static bool parse(LLVMContext *Ctx, ModuleRootSignature *MRS, NamedMDNode *Root, | ||||||||||||||||
const Function *EntryFunction) { | ||||||||||||||||
bool HasError = false; | ||||||||||||||||
|
||||||||||||||||
/** Root Signature are specified as following in the metadata: | ||||||||||||||||
|
||||||||||||||||
!dx.rootsignatures = !{!2} ; list of function/root signature pairs | ||||||||||||||||
!2 = !{ ptr @main, !3 } ; function, root signature | ||||||||||||||||
!3 = !{ !4, !5, !6, !7 } ; list of root signature elements | ||||||||||||||||
|
||||||||||||||||
So for each MDNode inside dx.rootsignatures NamedMDNode | ||||||||||||||||
(the Root parameter of this function), the parsing process needs | ||||||||||||||||
to loop through each of its operands and process the function, | ||||||||||||||||
signature pair. | ||||||||||||||||
*/ | ||||||||||||||||
|
||||||||||||||||
for (const MDNode *Node : Root->operands()) { | ||||||||||||||||
if (Node->getNumOperands() != 2) { | ||||||||||||||||
HasError = reportError( | ||||||||||||||||
Ctx, "Invalid format for Root Signature Definition. Pairs " | ||||||||||||||||
"of function, root signature expected."); | ||||||||||||||||
continue; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
const MDOperand &FunctionPointerMdNode = Node->getOperand(0); | ||||||||||||||||
if (FunctionPointerMdNode == nullptr) { | ||||||||||||||||
// Function was pruned during compilation. | ||||||||||||||||
continue; | ||||||||||||||||
} | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you construct a test case that includes this? Is this something that can actually happen - a function is referenced by some metadata, and the function is removed but not the metadata that references it? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I found this error when running test: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is that normal, or is this an indication of a bug somewhere where we also need to strip the corresponding metadata when a function is pruned? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems expected, not used functions will be removed, since we record function pointers in the metadata, if the function is removed the pointer will be null. @bogner please correct me. I think we should clean it, but we might need to do it in another pass. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we should be able to get here without hand-written invalid IR. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||
|
||||||||||||||||
ValueAsMetadata *VAM = | ||||||||||||||||
llvm::dyn_cast<ValueAsMetadata>(FunctionPointerMdNode.get()); | ||||||||||||||||
if (VAM == nullptr) { | ||||||||||||||||
HasError = | ||||||||||||||||
reportError(Ctx, "First element of root signature is not a value"); | ||||||||||||||||
continue; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
Function *F = dyn_cast<Function>(VAM->getValue()); | ||||||||||||||||
if (F == nullptr) { | ||||||||||||||||
HasError = | ||||||||||||||||
reportError(Ctx, "First element of root signature is not a function"); | ||||||||||||||||
continue; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
if (F != EntryFunction) | ||||||||||||||||
continue; | ||||||||||||||||
|
||||||||||||||||
// Get the Root Signature Description from the function signature pair. | ||||||||||||||||
MDNode *RS = dyn_cast<MDNode>(Node->getOperand(1).get()); | ||||||||||||||||
damyanp marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||
|
||||||||||||||||
if (RS == nullptr) { | ||||||||||||||||
reportError(Ctx, "Missing Root Element List Metadata node."); | ||||||||||||||||
continue; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
// Loop through the Root Elements of the root signature. | ||||||||||||||||
for (const auto &Operand : RS->operands()) { | ||||||||||||||||
MDNode *Element = dyn_cast<MDNode>(Operand); | ||||||||||||||||
if (Element == nullptr) | ||||||||||||||||
return reportError(Ctx, "Missing Root Element Metadata Node."); | ||||||||||||||||
|
||||||||||||||||
HasError = HasError || parseRootSignatureElement(Ctx, MRS, Element); | ||||||||||||||||
} | ||||||||||||||||
} | ||||||||||||||||
return HasError; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
static bool validate(LLVMContext *Ctx, ModuleRootSignature *MRS) { | ||||||||||||||||
if (!dxbc::RootSignatureValidations::isValidRootFlag(MRS->Flags)) { | ||||||||||||||||
return reportError(Ctx, "Invalid Root Signature flag value"); | ||||||||||||||||
} | ||||||||||||||||
return false; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
static const Function *getEntryFunction(Module &M, ModuleMetadataInfo MMI) { | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We shouldn't need to copy or modify the MMI here.
Suggested change
|
||||||||||||||||
|
||||||||||||||||
LLVMContext *Ctx = &M.getContext(); | ||||||||||||||||
if (MMI.EntryPropertyVec.size() != 1) { | ||||||||||||||||
reportError(Ctx, "More than one entry function defined."); | ||||||||||||||||
// needed to stop compilation | ||||||||||||||||
report_fatal_error("Invalid Root Signature Definition", false); | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is concerning and looks wrong. We shouldn't be crashing here when we're using diagnostics to report errors - we should fail gracefully. LLVM's diagnostic machinery will stop the compilation and bubble the error state up to the driver (which will then generally error out in whatever way it sees fit). It might be better to get rid of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My intention is that I agree that it is having the dxil::ModuleMetadataInfo &MMI =
getAnalysis<DXILMetadataAnalysisWrapperPass>().getModuleMetadata();
assert(MMI.EntryPropertyVec.size() == 1 ||
MMI.ShaderProfile == Triple::Library);
auto &RSA = getAnalysis<RootSignatureAnalysisWrapper>();
const ModuleRootSignature &MRS = RSA.getForFunction(MMI.EntryPropertyVec[0].Entry); @bogner thoughts? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you want to refactor this so that the analysis result is different I suppose that's fine, but all I'm saying is that |
||||||||||||||||
return nullptr; | ||||||||||||||||
} | ||||||||||||||||
return MMI.EntryPropertyVec[0].Entry; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
std::optional<ModuleRootSignature> | ||||||||||||||||
ModuleRootSignature::analyzeModule(Module &M, const Function *F) { | ||||||||||||||||
|
||||||||||||||||
LLVMContext *Ctx = &M.getContext(); | ||||||||||||||||
|
||||||||||||||||
ModuleRootSignature MRS; | ||||||||||||||||
|
||||||||||||||||
NamedMDNode *RootSignatureNode = M.getNamedMetadata("dx.rootsignatures"); | ||||||||||||||||
damyanp marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||
if (RootSignatureNode == nullptr) | ||||||||||||||||
return std::nullopt; | ||||||||||||||||
|
||||||||||||||||
if (parse(Ctx, &MRS, RootSignatureNode, F) || validate(Ctx, &MRS)) { | ||||||||||||||||
// needed to stop compilation | ||||||||||||||||
report_fatal_error("Invalid Root Signature Definition", false); | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here - why would we need to stop compilation here? Shouldn't returning |
||||||||||||||||
return std::nullopt; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
return MRS; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
AnalysisKey RootSignatureAnalysis::Key; | ||||||||||||||||
|
||||||||||||||||
std::optional<ModuleRootSignature> | ||||||||||||||||
RootSignatureAnalysis::run(Module &M, ModuleAnalysisManager &AM) { | ||||||||||||||||
ModuleMetadataInfo MMI = AM.getResult<DXILMetadataAnalysis>(M); | ||||||||||||||||
if (MMI.ShaderProfile == Triple::Library) | ||||||||||||||||
return std::nullopt; | ||||||||||||||||
return ModuleRootSignature::analyzeModule(M, getEntryFunction(M, MMI)); | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
//===----------------------------------------------------------------------===// | ||||||||||||||||
bool RootSignatureAnalysisWrapper::runOnModule(Module &M) { | ||||||||||||||||
dxil::ModuleMetadataInfo &MMI = | ||||||||||||||||
getAnalysis<DXILMetadataAnalysisWrapperPass>().getModuleMetadata(); | ||||||||||||||||
if (MMI.ShaderProfile == Triple::Library) | ||||||||||||||||
return false; | ||||||||||||||||
MRS = ModuleRootSignature::analyzeModule(M, getEntryFunction(M, MMI)); | ||||||||||||||||
return false; | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
void RootSignatureAnalysisWrapper::getAnalysisUsage(AnalysisUsage &AU) const { | ||||||||||||||||
AU.setPreservesAll(); | ||||||||||||||||
AU.addRequired<DXILMetadataAnalysisWrapperPass>(); | ||||||||||||||||
} | ||||||||||||||||
|
||||||||||||||||
char RootSignatureAnalysisWrapper::ID = 0; | ||||||||||||||||
damyanp marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||
|
||||||||||||||||
INITIALIZE_PASS_BEGIN(RootSignatureAnalysisWrapper, | ||||||||||||||||
"dx-root-signature-analysis", | ||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be called |
||||||||||||||||
"DXIL Root Signature Analysis", true, true) | ||||||||||||||||
INITIALIZE_PASS_DEPENDENCY(DXILMetadataAnalysisWrapperPass) | ||||||||||||||||
INITIALIZE_PASS_END(RootSignatureAnalysisWrapper, "dx-root-signature-analysis", | ||||||||||||||||
"DXIL Root Signature Analysis", true, true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These error strings are what get printed by LLVM if we ever hit this error condition. This message doesn't tell me what the actual error is.
Maybe something like (needs proper formatting):