aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2025-09-18 08:21:57 +0900
committerGitHub <noreply@github.com>2025-09-18 08:21:57 +0900
commitd46715aaa0203cc95f3749d386745ae293f0109f (patch)
tree3a55e130845b782291ca7db52fc1cbdd71541925 /llvm/lib/CodeGen/MachineOperand.cpp
parent18420d833d895f0e90d951a6adbef3e4e663e36a (diff)
downloadllvm-d46715aaa0203cc95f3749d386745ae293f0109f.zip
llvm-d46715aaa0203cc95f3749d386745ae293f0109f.tar.gz
llvm-d46715aaa0203cc95f3749d386745ae293f0109f.tar.bz2
clang: Emit error if assembler fails to construct subtarget (#159219)
We do not have consistent or good error handling of this situation. Some tools check for errors, some just assert. The backend has no proper way of reporting an invalid subtarget specification. MCSubtargetInfo currently does unreasonable things like spam warnings to errs, and then silently proceed in an invalid state. I have a patch which starts returning null on some invalid subtargets, but all the tools need to start erroring cleanly first. I don't think there is a reliable way to test this today. It would have to be an incomplete backend. Ideally we would thread through some kind of error context from the target to report the reason it's an invalid subtarget.
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions