[LLVMdev] Using branches in lowered operations
Evan Cheng
evan.cheng at apple.com
Thu Dec 10 22:52:12 PST 2009
See X86InstrInfo.td
let usesCustomInserter = 1, isTwoAddress = 0, Defs = [EFLAGS] in
def CMOV_GR8 : I<0, Pseudo,
This creates a CMOV_GR8 pseudo instruction at isel time which can be expanded during scheduling time.
Evan
On Dec 10, 2009, at 11:46 AM, Javier Martinez wrote:
> Hello,
>
> My expansion for an operation uses if and loops. How do I introduce
> branches in the target lowering stage? Do I have to create basic blocks,
> add the instructions to them and and add them to the machine function's
> basic block list?
>
> Thanks,
> Javier
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list