Print this basic block flag as inlineasm-br-indirect-target and parse
it. This allows you to write MIR test cases for INLINEASM_BR. The test
case I added is one that I wanted to precommit anyway for D110834.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/test/CodeGen/X86/callbr-asm-kill.mir | ||
---|---|---|
4 | Can you add a comment to this file as to what this test is supposed to be testing? Especially since it's actually a test for a future commit. |
llvm/lib/CodeGen/MachineBasicBlock.cpp | ||
---|---|---|
523 | seeing this much duplication makes me think we could DRY up attribute emission. Maybe a helper method would simply codegen here? |
llvm/lib/CodeGen/MachineBasicBlock.cpp | ||
---|---|---|
523 | We could do something like this to common up the simple attributes, but it doesn't help with attributes like "align" that take a value: https://reviews.llvm.org/differential/diff/378106/ |
seeing this much duplication makes me think we could DRY up attribute emission. Maybe a helper method would simply codegen here?