aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineVerifier.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2020-02-24 18:32:50 -0800
committerBill Wendling <isanbard@gmail.com>2020-02-24 18:51:29 -0800
commit50cac248773c3a023e8f6ceb9938bdd5e9f15da2 (patch)
treea215f4ce96662fe1c6aff2d13b23f2ba2f74c8c6 /llvm/lib/CodeGen/MachineVerifier.cpp
parent23c2a5ce33f0f05e4cc43c2cbb9009e9b549839c (diff)
downloadllvm-50cac248773c3a023e8f6ceb9938bdd5e9f15da2.zip
llvm-50cac248773c3a023e8f6ceb9938bdd5e9f15da2.tar.gz
llvm-50cac248773c3a023e8f6ceb9938bdd5e9f15da2.tar.bz2
Support output constraints on "asm goto"
Summary: Clang's "asm goto" feature didn't initially support outputs constraints. That was the same behavior as gcc's implementation. The decision by gcc not to support outputs was based on a restriction in their IR regarding terminators. LLVM doesn't restrict terminators from returning values (e.g. 'invoke'), so it made sense to support this feature. Output values are valid only on the 'fallthrough' path. If an output value's used on an indirect branch, then it's 'poisoned'. In theory, outputs *could* be valid on the 'indirect' paths, but it's very difficult to guarantee that the original semantics would be retained. E.g. because indirect labels could be used as data, we wouldn't be able to split critical edges in situations where two 'callbr' instructions have the same indirect label, because the indirect branch's destination would no longer be the same. Reviewers: jyknight, nickdesaulniers, hfinkel Reviewed By: jyknight, nickdesaulniers Subscribers: MaskRay, rsmith, hiraditya, llvm-commits, cfe-commits, craig.topper, rnk Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D69876
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
0 files changed, 0 insertions, 0 deletions