Permalink
Please
sign in to comment.
Browse files
[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
- Loading branch information
Showing
with
242 additions
and 135 deletions.
- +2 −0 llvm/include/llvm-c/Core.h
- +2 −1 llvm/include/llvm/Bitcode/LLVMBitCodes.h
- +3 −0 llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
- +4 −0 llvm/include/llvm/IR/IRBuilder.h
- +67 −66 llvm/include/llvm/IR/Instruction.def
- +3 −0 llvm/include/llvm/IR/Operator.h
- +22 −0 llvm/include/llvm/IR/PatternMatch.h
- +1 −0 llvm/lib/AsmParser/LLLexer.cpp
- +7 −5 llvm/lib/AsmParser/LLParser.cpp
- +1 −0 llvm/lib/AsmParser/LLToken.h
- +4 −7 llvm/lib/Bitcode/Reader/BitcodeReader.cpp
- +23 −23 llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
- +5 −0 llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
- +1 −0 llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
- +1 −0 llvm/lib/CodeGen/TargetLoweringBase.cpp
- +38 −29 llvm/lib/IR/ConstantFold.cpp
- +5 −0 llvm/lib/IR/Core.cpp
- +1 −0 llvm/lib/IR/Instruction.cpp
- +3 −0 llvm/lib/IR/Instructions.cpp
- +3 −0 llvm/lib/IR/Verifier.cpp
- +3 −0 llvm/test/Bindings/OCaml/core.ml
- +22 −0 llvm/test/Bindings/llvm-c/freeze.ll
- +13 −1 llvm/test/Bitcode/compatibility.ll
- +3 −3 llvm/test/Transforms/MergeFunc/inline-asm.ll
- +5 −0 llvm/tools/llvm-c-test/echo.cpp
Oops, something went wrong.
0 comments on commit
58acbce