[PATCH] D137815: [DirectX backend] Fix build and test error caused by out of sync with upstream change.
Xiang Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 11 00:00:46 PST 2022
python3kgae created this revision.
python3kgae added reviewers: bogner, beanz, pow2clk.
Herald added a subscriber: hiraditya.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Fix build and test error caused by
https://github.com/llvm/llvm-project/commit/a2620e00ffa232a406de3a1d8634beeda86956fd#
and
https://github.com/llvm/llvm-project/commit/304f1d59ca41872c094def3aee0a8689df6aa398
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D137815
Files:
llvm/lib/Target/DirectX/DXILPrepare.cpp
llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
llvm/test/CodeGen/DirectX/strip-fn-attrs.ll
llvm/test/tools/dxil-dis/attribute-filter.ll
Index: llvm/test/tools/dxil-dis/attribute-filter.ll
===================================================================
--- llvm/test/tools/dxil-dis/attribute-filter.ll
+++ llvm/test/tools/dxil-dis/attribute-filter.ll
@@ -3,7 +3,7 @@
; CHECK: target triple = "dxil-ms-dx"
target triple = "dxil-unknown-shadermodel6.7-library"
-; CHECK: Function Attrs: nounwind readnone
+; CHECK: Function Attrs: nounwind
; Function Attrs: norecurse nounwind readnone willreturn
define float @fma(float %0, float %1, float %2) #0 {
%4 = fmul float %0, %1
@@ -11,5 +11,5 @@
ret float %5
}
-; CHECK: attributes #0 = { nounwind readnone "disable-tail-calls"="false" }
+; CHECK: attributes #0 = { nounwind "disable-tail-calls"="false" }
attributes #0 = { norecurse nounwind readnone willreturn "disable-tail-calls"="false" }
Index: llvm/test/CodeGen/DirectX/strip-fn-attrs.ll
===================================================================
--- llvm/test/CodeGen/DirectX/strip-fn-attrs.ll
+++ llvm/test/CodeGen/DirectX/strip-fn-attrs.ll
@@ -1,7 +1,7 @@
; RUN: llc %s --filetype=asm -o - | FileCheck %s
target triple = "dxil-unknown-shadermodel6.7-library"
-; CHECK: Function Attrs: nounwind readnone
+; CHECK: Function Attrs: nounwind
; Function Attrs: norecurse nounwind readnone willreturn
define dso_local float @fma(float %0, float %1, float %2) local_unnamed_addr #0 {
%4 = fmul float %0, %1
@@ -9,11 +9,11 @@
ret float %5
}
-; CHECK: Function Attrs: nounwind readnone
+; CHECK: Function Attrs: nounwind
; Function Attrs: nofree nosync nounwind readnone speculatable willreturn
declare void @llvm.dbg.value(metadata, metadata, metadata) #1
-; CHECK: attributes #0 = { nounwind readnone }
+; CHECK: attributes #0 = { nounwind }
; CHECK-NOT attributes #
attributes #0 = { norecurse nounwind readnone willreturn }
Index: llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
===================================================================
--- llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
+++ llvm/lib/Target/DirectX/DXILWriter/DXILBitcodeWriter.cpp
@@ -276,6 +276,10 @@
unsigned Abbrev) {
llvm_unreachable("DXIL cannot contain DIArgList Nodes");
}
+ void writeDIAssignID(const DIAssignID *N, SmallVectorImpl<uint64_t> &Record,
+ unsigned Abbrev) {
+ llvm_unreachable("DXIL cannot contain DIAssignID Nodes");
+ }
void writeDIModule(const DIModule *N, SmallVectorImpl<uint64_t> &Record,
unsigned Abbrev);
void writeDITemplateTypeParameter(const DITemplateTypeParameter *N,
@@ -661,8 +665,6 @@
return bitc::ATTR_KIND_ALIGNMENT;
case Attribute::AlwaysInline:
return bitc::ATTR_KIND_ALWAYS_INLINE;
- case Attribute::ArgMemOnly:
- return bitc::ATTR_KIND_ARGMEMONLY;
case Attribute::Builtin:
return bitc::ATTR_KIND_BUILTIN;
case Attribute::ByVal:
Index: llvm/lib/Target/DirectX/DXILPrepare.cpp
===================================================================
--- llvm/lib/Target/DirectX/DXILPrepare.cpp
+++ llvm/lib/Target/DirectX/DXILPrepare.cpp
@@ -61,7 +61,6 @@
Attribute::OptimizeNone,
Attribute::ReadNone,
Attribute::ReadOnly,
- Attribute::ArgMemOnly,
Attribute::Returned,
Attribute::ReturnsTwice,
Attribute::SExt,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137815.474674.patch
Type: text/x-patch
Size: 3437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221111/0b3394df/attachment.bin>
More information about the llvm-commits
mailing list