HomePhabricator

[IR] Add Freeze instruction

Authored by aqjune on Mon, Nov 4, 10:53 PM.

Description

[IR] Add Freeze instruction

Summary:

  • Define Instruction::Freeze, let it be UnaryOperator
  • Add support for freeze to LLLexer/LLParser/BitcodeReader/BitcodeWriter The format is %x = freeze <ty> %v
  • Add support for freeze instruction to llvm-c interface.
  • Add m_Freeze in PatternMatch.
  • Erase freeze when lowering IR to SelDag.

Reviewers: deadalnix, hfinkel, efriedma, lebedev.ri, nlopes, jdoerfert, regehr, filcab, delcypher, whitequark

Reviewed By: lebedev.ri, jdoerfert

Subscribers: jfb, kristof.beyls, hiraditya, lebedev.ri, steven_wu, dexonsmith, xbolva00, delcypher, spatel, regehr, trentxintong, vsk, filcab, nlopes, mehdi_amini, deadalnix, llvm-commits

Differential Revision: https://reviews.llvm.org/D29011

Details

Committed
aqjuneMon, Nov 4, 10:54 PM
Reviewer
lebedev.ri
Differential Revision
D69932: [IR] Redefine Freeze instruction
Parents
rG9f34447f3ff5: [BPF] fix a use after free bug
Branches
Unknown
Tags
Unknown