Second installment of "BasicBlock operands to the back"
authorGabor Greif <ggreif@gmail.com>
Fri, 13 Mar 2009 18:27:29 +0000 (18:27 +0000)
committerGabor Greif <ggreif@gmail.com>
Fri, 13 Mar 2009 18:27:29 +0000 (18:27 +0000)
commitb14cda3c0dea98bdd44c2f209afaf4fb36d42a8a
treec65232c6e234198481772e94f867a498fba7cfd6
parent6dc3a8fd40a8c1bf6a12d6389506c4db9a497730
Second installment of "BasicBlock operands to the back"
changes.

For InvokeInst now all arguments begin at op_begin().
The Callee, Cont and Fail are now faster to get by
access relative to op_end().

This patch introduces some temporary uglyness in CallSite.
Next I'll bring CallInst up to a similar scheme and then
the uglyness will magically vanish.

This patch also exposes all the reliance of the libraries
on InvokeInst's operand ordering. I am thinking of taking
care of that too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66920 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/Instructions.h
include/llvm/Support/CallSite.h
lib/Analysis/IPA/Andersens.cpp
lib/Analysis/IPA/GlobalsModRef.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/Transforms/IPO/DeadArgumentElimination.cpp
lib/Transforms/IPO/PruneEH.cpp
lib/Transforms/Scalar/SimplifyCFGPass.cpp
lib/Transforms/Utils/LowerInvoke.cpp
lib/VMCore/AsmWriter.cpp
lib/VMCore/Instructions.cpp
lib/VMCore/Verifier.cpp