[llvm] [DirectX] remove string function attribute DXIL not allowed (PR #90778)
Xiang Li via llvm-commits
llvm-commits at lists.llvm.org
Fri May 3 14:10:31 PDT 2024
================
@@ -79,8 +79,8 @@ class DirectXPassConfig : public TargetPassConfig {
void addCodeGenPrepare() override {
addPass(createDXILIntrinsicExpansionLegacyPass());
addPass(createDXILOpLoweringLegacyPass());
- addPass(createDXILPrepareModulePass());
addPass(createDXILTranslateMetadataPass());
+ addPass(createDXILPrepareModulePass());
----------------
python3kgae wrote:
Because DXILTranslateMetadataPass needs to use attribute like hlsl.numthreads.
If DXILPrepareModulePass before DXILTranslateMetadataPass. The attribute will be removed.
https://github.com/llvm/llvm-project/pull/90778
More information about the llvm-commits
mailing list