[PATCH] D16383: Change ConstantFoldInstOperands to take Instruction instead of opcode and type. NFC.
Manuel Jacob via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 20 17:13:26 PST 2016
mjacob created this revision.
mjacob added a reviewer: eddyb.
mjacob added subscribers: llvm-commits, dblaikie.
The previous form, taking opcode and type, is moved to an internal
helper and the new form, taking an instruction, is a wrapper around this
helper.
Although this is a slight cleanup on its own, the main motivation is to
refactor the constant folding API to ease migration to opaque pointers.
This will be follow-up work.
http://reviews.llvm.org/D16383
Files:
include/llvm/Analysis/ConstantFolding.h
lib/Analysis/ConstantFolding.cpp
lib/Analysis/InlineCost.cpp
lib/Analysis/InstructionSimplify.cpp
lib/Analysis/ScalarEvolution.cpp
lib/Transforms/Utils/SimplifyCFG.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16383.45468.patch
Type: text/x-patch
Size: 9095 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160121/a5d68771/attachment.bin>
More information about the llvm-commits
mailing list