mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
revert 98912
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98914 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -71,7 +71,7 @@ class CodeGenTarget {
|
||||
void ReadInstructions() const;
|
||||
void ReadLegalValueTypes() const;
|
||||
|
||||
mutable std::vector<const CodeGenInstruction*> InstrsByEnum;
|
||||
std::vector<const CodeGenInstruction*> InstrsByEnum;
|
||||
public:
|
||||
CodeGenTarget();
|
||||
|
||||
@@ -205,25 +205,25 @@ public:
|
||||
|
||||
CodeGenInstruction &getInstruction(const Record *InstRec) const;
|
||||
|
||||
typedef std::map<std::string,
|
||||
CodeGenInstruction>::const_iterator inst_iterator;
|
||||
inst_iterator inst_begin() const { return getInstructions().begin(); }
|
||||
inst_iterator inst_end() const { return Instructions.end(); }
|
||||
|
||||
/// getInstructionsByEnumValue - Return all of the instructions defined by the
|
||||
/// target, ordered by their enum value.
|
||||
const std::vector<const CodeGenInstruction*> &
|
||||
getInstructionsByEnumValue() const {
|
||||
const std::vector<const CodeGenInstruction*> &getInstructionsByEnumValue() {
|
||||
if (InstrsByEnum.empty()) ComputeInstrsByEnum();
|
||||
return InstrsByEnum;
|
||||
}
|
||||
|
||||
typedef std::vector<const CodeGenInstruction*>::const_iterator inst_iterator;
|
||||
inst_iterator inst_begin() const{return getInstructionsByEnumValue().begin();}
|
||||
inst_iterator inst_end() const { return getInstructionsByEnumValue().end(); }
|
||||
|
||||
|
||||
|
||||
/// isLittleEndianEncoding - are instruction bit patterns defined as [0..n]?
|
||||
///
|
||||
bool isLittleEndianEncoding() const;
|
||||
|
||||
private:
|
||||
void ComputeInstrsByEnum() const;
|
||||
void ComputeInstrsByEnum();
|
||||
};
|
||||
|
||||
/// ComplexPattern - ComplexPattern info, corresponding to the ComplexPattern
|
||||
|
||||
Reference in New Issue
Block a user