File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 149
149
cmd = ` $(SPIRV_Tools_jll. spirv_val ()) $translated `
150
150
proc = run (ignorestatus (cmd))
151
151
if ! success (proc)
152
- error (""" Failed to validate generated SPIR-V.
153
- If you think this is a bug, please file an issue and attach $(input) and $(translated) .""" )
152
+ run (` $(SPIRV_Tools_jll. spirv_dis ()) $translated -o -` )
153
+ error (""" Failed to validate generated SPIR-V.
154
+ If you think this is a bug, please file an issue and attach $(input) and $(translated) .""" )
154
155
end
155
156
end
156
157
@@ -168,10 +169,10 @@ end
168
169
end
169
170
170
171
output = if format == LLVM. API. LLVMObjectFile
171
- read (translated )
172
+ read (optimized )
172
173
else
173
174
# disassemble
174
- read (` $(SPIRV_Tools_jll. spirv_dis ()) $translated ` , String)
175
+ read (` $(SPIRV_Tools_jll. spirv_dis ()) $optimized ` , String)
175
176
end
176
177
177
178
rm (input)
You can’t perform that action at this time.
0 commit comments