Changeset View
Changeset View
Standalone View
Standalone View
lib/CodeGen/MachineSSAUpdater.cpp
Context not available. | |||||
static BlkSucc_iterator BlkSucc_begin(BlkT *BB) { return BB->succ_begin(); } | static BlkSucc_iterator BlkSucc_begin(BlkT *BB) { return BB->succ_begin(); } | ||||
static BlkSucc_iterator BlkSucc_end(BlkT *BB) { return BB->succ_end(); } | static BlkSucc_iterator BlkSucc_end(BlkT *BB) { return BB->succ_end(); } | ||||
/// Iterator over phis in a block. | |||||
typedef BlkT::iterator PhiItT; | |||||
static PhiItT PhiItT_begin(BlkT *BB) { return BB->begin(); } | |||||
static PhiItT PhiItT_end(BlkT *BB) { return BB->end(); } | |||||
mehdi_amini: The interface is somehow lying: `PhiItT_end` is not the end of the PHIs list.
(not that I have… | |||||
aschwaighoferUnsubmitted Not Done ReplyInline ActionsHow about calling it PhiCandidateItT? aschwaighofer: How about calling it PhiCandidateItT? | |||||
mehdi_aminiUnsubmitted Not Done ReplyInline ActionsAt least it wouldn't be a lie :) I wonder if it would be useful to have real Phi iterator in LLVM though? mehdi_amini: At least it wouldn't be a lie :)
I wonder if it would be useful to have real Phi iterator in… | |||||
/// Iterator for PHI operands. | /// Iterator for PHI operands. | ||||
class PHI_iterator { | class PHI_iterator { | ||||
private: | private: | ||||
Context not available. |
The interface is somehow lying: PhiItT_end is not the end of the PHIs list.
(not that I have a great suggestion to solve that)