[all-commits] [llvm/llvm-project] e87d71: [IR] Redefine Freeze instruction
Juneyoung Lee via All-commits
all-commits at lists.llvm.org
Mon Nov 11 17:49:07 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: e87d71668e10f51abe4b2f1f3c44591aca783750
https://github.com/llvm/llvm-project/commit/e87d71668e10f51abe4b2f1f3c44591aca783750
Author: aqjune <aqjune at gmail.com>
Date: 2019-11-12 (Tue, 12 Nov 2019)
Changed paths:
M llvm/include/llvm-c/Core.h
M llvm/include/llvm/Bitcode/LLVMBitCodes.h
M llvm/include/llvm/IR/IRBuilder.h
M llvm/include/llvm/IR/InstVisitor.h
M llvm/include/llvm/IR/Instruction.def
M llvm/include/llvm/IR/Instructions.h
M llvm/include/llvm/IR/Operator.h
M llvm/include/llvm/IR/PatternMatch.h
M llvm/lib/AsmParser/LLLexer.cpp
M llvm/lib/AsmParser/LLParser.cpp
M llvm/lib/AsmParser/LLParser.h
M llvm/lib/AsmParser/LLToken.h
M llvm/lib/Bitcode/Reader/BitcodeReader.cpp
M llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
M llvm/lib/IR/ConstantFold.cpp
M llvm/lib/IR/Core.cpp
M llvm/lib/IR/Instruction.cpp
M llvm/lib/IR/Instructions.cpp
M llvm/lib/IR/Verifier.cpp
M llvm/test/Bindings/OCaml/core.ml
M llvm/test/Bindings/llvm-c/freeze.ll
M llvm/test/Bitcode/compatibility.ll
M llvm/test/Transforms/MergeFunc/inline-asm.ll
M llvm/unittests/IR/VerifierTest.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list