[PATCH] D140180: [llvm] add CallBrPrepare pass to pipelines
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 26 10:41:38 PST 2023
nickdesaulniers marked an inline comment as done.
nickdesaulniers added inline comments.
================
Comment at: llvm/docs/LangRef.rst:8537
+To support outputs along indirect edges, LLVM may need to split critical edges.
+This means that basic blocks may be synthesized; ``indirect labels`` from
+inline asm may not compare equal to the label when passed as a
----------------
efriedma wrote:
> jyknight wrote:
> > efriedma wrote:
> > > Labels aren't a thing in LLVM IR; if you mean "blockaddress", please state that explicitly. Otherwise, I'm not sure what you're referring to.
> > "indirect labels" are one of the arguments to the "callbr" instruction (see above syntax description and below description in "Arguments")
> Okay, but then how do you pass a label as a "function args"?
> Labels aren't a thing in LLVM IR
```
callbr void asm "", "r,!i"(i32 %x)
to label %fallthrough [label %indirect]
```
I see the word label twice there.
I'm also using language consistent with the rest of this section of the langref.
https://llvm.org/docs/LangRef.html#callbr-instruction
Perhaps the langref could use a fresh coat of paint here? But can that be orthogonal to this patch?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140180/new/
https://reviews.llvm.org/D140180
More information about the llvm-commits
mailing list