sameerds added inline comments.
================ Comment at: clang/lib/Driver/ToolChains/HIP.cpp:158 Args.MakeArgString(Twine("-filetype=") + (OutputIsAsm ? "asm" : "obj"))); + LlcArgs.push_back("--amdgpu-enable-structurizer-workarounds"); ---------------- arsenm wrote: > We should just flip this in the backend. llc flags are not intended for > frontends to set options Admittedly, this is a broken workflow. I am not even sure if Clang should be invoking llc at all. Ideally, we would want to eliminate this flag entirely. But flipping it is okay too if graphics workloads are sensitive to it. The priority right now is to enable the workarounds officially only for HIP and this seems to be most concise way to do it. We can flip the flag once other users of the AMDGPU are on board. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D78900/new/ https://reviews.llvm.org/D78900 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits