[llvm-dev] Question regarding X86::getCondFromBranch()
S. Bharadwaj Yadavalli via llvm-dev
llvm-dev at lists.llvm.org
Thu Apr 11 10:43:48 PDT 2019
Thanks for your quick reply, Craig.
On Thu, Apr 11, 2019 at 1:18 PM Craig Topper <craig.topper at gmail.com> wrote:
>
> Nothing in LLVM today creates a MachineInstr that has JCC_2 or JCC_4 opcode. Those only get created by assembler relaxation after everything has been converted to MCInst.
OK. That is good information.
> Do you have your own code that is creating JCC_2/JCC_4?
I see a need for it in my LLVM-based tool that parses binaries. So
far, handling JCC_2 and JCC_4 opcodes as is done in the function,
seems to do the job for me. Hopefully there are no subtleties that I
am ignoring.
Bharadwaj
More information about the llvm-dev
mailing list