mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
don't go through getInstructions().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98906 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2362,11 +2362,11 @@ void CodeGenDAGPatterns::AddPatternToMatch(const TreePattern *Pattern,
|
||||
|
||||
|
||||
void CodeGenDAGPatterns::InferInstructionFlags() {
|
||||
std::map<std::string, CodeGenInstruction> &InstrDescs =
|
||||
Target.getInstructions();
|
||||
for (std::map<std::string, CodeGenInstruction>::iterator
|
||||
II = InstrDescs.begin(), E = InstrDescs.end(); II != E; ++II) {
|
||||
CodeGenInstruction &InstInfo = II->second;
|
||||
std::vector<const CodeGenInstruction*> Instructions;
|
||||
Target.getInstructionsByEnumValue(Instructions);
|
||||
for (unsigned i = 0, e = Instructions.size(); i != e; ++i) {
|
||||
CodeGenInstruction &InstInfo =
|
||||
const_cast<CodeGenInstruction &>(*Instructions[i]);
|
||||
// Determine properties of the instruction from its pattern.
|
||||
bool MayStore, MayLoad, HasSideEffects;
|
||||
InferFromPattern(InstInfo, MayStore, MayLoad, HasSideEffects, *this);
|
||||
|
Reference in New Issue
Block a user