SuccessChanges

Summary

  1. [IR] Redefine Freeze instruction (details)
Commit e87d71668e10f51abe4b2f1f3c44591aca783750 by aqjune
[IR] Redefine Freeze instruction
Summary: This patch redefines freeze instruction from being
UnaryOperator to a subclass of UnaryInstruction.
ConstantExpr freeze is removed, as discussed in the previous review.
FreezeOperator is not added because there's no ConstantExpr freeze.
`freeze i8* null` test is added to `test/Bindings/llvm-c/freeze.ll` as
well, because the null pointer-related bug in `tools/llvm-c/echo.cpp` is
now fixed. InstVisitor has visitFreeze now because freeze is not unaryop
anymore.
Reviewers: whitequark, deadalnix, craig.topper, jdoerfert, lebedev.ri
Reviewed By: craig.topper, lebedev.ri
Subscribers: regehr, nlopes, mehdi_amini, hiraditya, steven_wu,
dexonsmith, jfb, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D69932
The file was modifiedllvm/lib/AsmParser/LLParser.h
The file was modifiedllvm/test/Transforms/MergeFunc/inline-asm.ll
The file was modifiedllvm/lib/AsmParser/LLToken.h
The file was modifiedllvm/test/Bindings/OCaml/core.ml
The file was modifiedllvm/lib/IR/Instructions.cpp
The file was modifiedllvm/include/llvm/IR/Instruction.def
The file was modifiedllvm/include/llvm/IR/IRBuilder.h
The file was modifiedllvm/lib/IR/Verifier.cpp
The file was modifiedllvm/lib/IR/Core.cpp
The file was modifiedllvm/test/Bitcode/compatibility.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
The file was modifiedllvm/lib/AsmParser/LLLexer.cpp
The file was modifiedllvm/include/llvm/IR/Instructions.h
The file was modifiedllvm/include/llvm/Bitcode/LLVMBitCodes.h
The file was modifiedllvm/lib/Bitcode/Writer/BitcodeWriter.cpp
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
The file was modifiedllvm/include/llvm/IR/PatternMatch.h
The file was modifiedllvm/include/llvm/IR/Operator.h
The file was modifiedllvm/lib/IR/Instruction.cpp
The file was modifiedllvm/include/llvm-c/Core.h
The file was modifiedllvm/lib/AsmParser/LLParser.cpp
The file was modifiedllvm/unittests/IR/VerifierTest.cpp
The file was modifiedllvm/test/Bindings/llvm-c/freeze.ll
The file was modifiedllvm/lib/Bitcode/Reader/BitcodeReader.cpp
The file was modifiedllvm/include/llvm/IR/InstVisitor.h
The file was modifiedllvm/lib/IR/ConstantFold.cpp