aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachinePostDominators.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-09-16 19:39:50 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-09-16 19:39:50 +0000
commit9712117a075641477762ba3300624840d92f1fb1 (patch)
treec1cff22e3a798a605e4f5899b5894db874ac1bc4 /llvm/lib/CodeGen/MachinePostDominators.cpp
parenta583df034abe53e8e77f285e0bf29410ba2ef4de (diff)
downloadllvm-9712117a075641477762ba3300624840d92f1fb1.zip
llvm-9712117a075641477762ba3300624840d92f1fb1.tar.gz
llvm-9712117a075641477762ba3300624840d92f1fb1.tar.bz2
Refactor the SROA visitors for partitioning an alloca and building
partition use lists a bit. No functionality changed. These visitors are actually visiting a tuple of a Use and an offset into the alloca. However, we use the InstVisitor to handle the dispatch over the users, and so the Use and Offset are stored in class member variables and set just before each call to visit(). This is fairly awkward and makes the functions a bit harder to read, but its the only real option we have until InstVisitor can be rewritten to use variadic templates. However, this pattern shouldn't be followed on the helper member functions where there is no interface constraint from the visitor. We already were passing the instruction as a normal parameter rather than use the Use to get at it, start passing the offset as well. This will become more important in subsequent patches as the offset will in some cases change while visiting a single instruction. llvm-svn: 164003
Diffstat (limited to 'llvm/lib/CodeGen/MachinePostDominators.cpp')
0 files changed, 0 insertions, 0 deletions