mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 19:26:30 +00:00
trailing whitespace
llvm-svn: 116068
This commit is contained in:
parent
85b45fcc52
commit
507bebdd8a
@ -32,7 +32,7 @@ namespace llvm {
|
|||||||
/// AsmString - The format string used to emit a .s file for the
|
/// AsmString - The format string used to emit a .s file for the
|
||||||
/// instruction.
|
/// instruction.
|
||||||
std::string AsmString;
|
std::string AsmString;
|
||||||
|
|
||||||
class ConstraintInfo {
|
class ConstraintInfo {
|
||||||
enum { None, EarlyClobber, Tied } Kind;
|
enum { None, EarlyClobber, Tied } Kind;
|
||||||
unsigned OtherTiedOperand;
|
unsigned OtherTiedOperand;
|
||||||
@ -45,24 +45,24 @@ namespace llvm {
|
|||||||
I.OtherTiedOperand = 0;
|
I.OtherTiedOperand = 0;
|
||||||
return I;
|
return I;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ConstraintInfo getTied(unsigned Op) {
|
static ConstraintInfo getTied(unsigned Op) {
|
||||||
ConstraintInfo I;
|
ConstraintInfo I;
|
||||||
I.Kind = Tied;
|
I.Kind = Tied;
|
||||||
I.OtherTiedOperand = Op;
|
I.OtherTiedOperand = Op;
|
||||||
return I;
|
return I;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isNone() const { return Kind == None; }
|
bool isNone() const { return Kind == None; }
|
||||||
bool isEarlyClobber() const { return Kind == EarlyClobber; }
|
bool isEarlyClobber() const { return Kind == EarlyClobber; }
|
||||||
bool isTied() const { return Kind == Tied; }
|
bool isTied() const { return Kind == Tied; }
|
||||||
|
|
||||||
unsigned getTiedOperand() const {
|
unsigned getTiedOperand() const {
|
||||||
assert(isTied());
|
assert(isTied());
|
||||||
return OtherTiedOperand;
|
return OtherTiedOperand;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/// OperandInfo - The information we keep track of for each operand in the
|
/// OperandInfo - The information we keep track of for each operand in the
|
||||||
/// operand list for a tablegen instruction.
|
/// operand list for a tablegen instruction.
|
||||||
struct OperandInfo {
|
struct OperandInfo {
|
||||||
@ -91,16 +91,16 @@ namespace llvm {
|
|||||||
/// the DisableEncoding list. These should not be emitted by the code
|
/// the DisableEncoding list. These should not be emitted by the code
|
||||||
/// emitter.
|
/// emitter.
|
||||||
std::vector<bool> DoNotEncode;
|
std::vector<bool> DoNotEncode;
|
||||||
|
|
||||||
/// MIOperandInfo - Default MI operand type. Note an operand may be made
|
/// MIOperandInfo - Default MI operand type. Note an operand may be made
|
||||||
/// up of multiple MI operands.
|
/// up of multiple MI operands.
|
||||||
DagInit *MIOperandInfo;
|
DagInit *MIOperandInfo;
|
||||||
|
|
||||||
/// Constraint info for this operand. This operand can have pieces, so we
|
/// Constraint info for this operand. This operand can have pieces, so we
|
||||||
/// track constraint info for each.
|
/// track constraint info for each.
|
||||||
std::vector<ConstraintInfo> Constraints;
|
std::vector<ConstraintInfo> Constraints;
|
||||||
|
|
||||||
OperandInfo(Record *R, const std::string &N, const std::string &PMN,
|
OperandInfo(Record *R, const std::string &N, const std::string &PMN,
|
||||||
unsigned MION, unsigned MINO, DagInit *MIOI)
|
unsigned MION, unsigned MINO, DagInit *MIOI)
|
||||||
: Rec(R), Name(N), PrinterMethodName(PMN), MIOperandNo(MION),
|
: Rec(R), Name(N), PrinterMethodName(PMN), MIOperandNo(MION),
|
||||||
MINumOperands(MINO), MIOperandInfo(MIOI) {}
|
MINumOperands(MINO), MIOperandInfo(MIOI) {}
|
||||||
@ -144,7 +144,7 @@ namespace llvm {
|
|||||||
bool isAsCheapAsAMove;
|
bool isAsCheapAsAMove;
|
||||||
bool hasExtraSrcRegAllocReq;
|
bool hasExtraSrcRegAllocReq;
|
||||||
bool hasExtraDefRegAllocReq;
|
bool hasExtraDefRegAllocReq;
|
||||||
|
|
||||||
/// ParseOperandName - Parse an operand name like "$foo" or "$foo.bar",
|
/// ParseOperandName - Parse an operand name like "$foo" or "$foo.bar",
|
||||||
/// where $foo is a whole operand and $foo.bar refers to a suboperand.
|
/// where $foo is a whole operand and $foo.bar refers to a suboperand.
|
||||||
/// This throws an exception if the name is invalid. If AllowWholeOp is
|
/// This throws an exception if the name is invalid. If AllowWholeOp is
|
||||||
@ -152,13 +152,13 @@ namespace llvm {
|
|||||||
/// not.
|
/// not.
|
||||||
std::pair<unsigned,unsigned> ParseOperandName(const std::string &Op,
|
std::pair<unsigned,unsigned> ParseOperandName(const std::string &Op,
|
||||||
bool AllowWholeOp = true);
|
bool AllowWholeOp = true);
|
||||||
|
|
||||||
/// getFlattenedOperandNumber - Flatten a operand/suboperand pair into a
|
/// getFlattenedOperandNumber - Flatten a operand/suboperand pair into a
|
||||||
/// flat machineinstr operand #.
|
/// flat machineinstr operand #.
|
||||||
unsigned getFlattenedOperandNumber(std::pair<unsigned,unsigned> Op) const {
|
unsigned getFlattenedOperandNumber(std::pair<unsigned,unsigned> Op) const {
|
||||||
return OperandList[Op.first].MIOperandNo + Op.second;
|
return OperandList[Op.first].MIOperandNo + Op.second;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getSubOperandNumber - Unflatten a operand number into an
|
/// getSubOperandNumber - Unflatten a operand number into an
|
||||||
/// operand/suboperand pair.
|
/// operand/suboperand pair.
|
||||||
std::pair<unsigned,unsigned> getSubOperandNumber(unsigned Op) const {
|
std::pair<unsigned,unsigned> getSubOperandNumber(unsigned Op) const {
|
||||||
@ -168,8 +168,8 @@ namespace llvm {
|
|||||||
return std::make_pair(i, Op-OperandList[i].MIOperandNo);
|
return std::make_pair(i, Op-OperandList[i].MIOperandNo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// isFlatOperandNotEmitted - Return true if the specified flat operand #
|
/// isFlatOperandNotEmitted - Return true if the specified flat operand #
|
||||||
/// should not be emitted with the code emitter.
|
/// should not be emitted with the code emitter.
|
||||||
bool isFlatOperandNotEmitted(unsigned FlatOpNo) const {
|
bool isFlatOperandNotEmitted(unsigned FlatOpNo) const {
|
||||||
@ -185,11 +185,11 @@ namespace llvm {
|
|||||||
/// non-empty name. If the instruction does not have an operand with the
|
/// non-empty name. If the instruction does not have an operand with the
|
||||||
/// specified name, throw an exception.
|
/// specified name, throw an exception.
|
||||||
unsigned getOperandNamed(const std::string &Name) const;
|
unsigned getOperandNamed(const std::string &Name) const;
|
||||||
|
|
||||||
/// HasOneImplicitDefWithKnownVT - If the instruction has at least one
|
/// HasOneImplicitDefWithKnownVT - If the instruction has at least one
|
||||||
/// implicit def and it has a known VT, return the VT, otherwise return
|
/// implicit def and it has a known VT, return the VT, otherwise return
|
||||||
/// MVT::Other.
|
/// MVT::Other.
|
||||||
MVT::SimpleValueType
|
MVT::SimpleValueType
|
||||||
HasOneImplicitDefWithKnownVT(const CodeGenTarget &TargetInfo) const;
|
HasOneImplicitDefWithKnownVT(const CodeGenTarget &TargetInfo) const;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user