
- Changed `DXILTranslateMetadata::translateMetadata()` to consume DXIL Metadata Analysis information. Subsumed into `DXILTranslateMetedata.cpp` the functionality in `DXILMetadata.*` files - that are hence deleted. - Changed `DXILPrepare` pass to consume DXIL Metadata Analysis information. - Renamed `ModuleMetadataInfo::ShaderStage` to `ModuleMetadataInfo::ShaderProfile` to better convey what it represents. - Updated `unknown` target shader stage specification in triples of a couple of tests. - Added new tests for additional verification of `DXILTranslateMetadata` pass functionality.
18 lines
457 B
LLVM
18 lines
457 B
LLVM
; RUN: opt -S -dxil-prepare -mtriple=dxil-unknown-shadermodel6.0-library %s | FileCheck %s
|
|
|
|
; CHECK: define void @main()
|
|
; Make sure behavior flag > 6 is fixed.
|
|
; CHECK:{i32 2, !"frame-pointer", i32 2}
|
|
|
|
; Function Attrs: nounwind memory(none)
|
|
define void @main() local_unnamed_addr #0 {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind memory(none) }
|
|
!llvm.module.flags = !{!0, !1}
|
|
|
|
!0 = !{i32 1, !"wchar_size", i32 4}
|
|
!1 = !{i32 7, !"frame-pointer", i32 2}
|