mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
Whitespace and 80-column fixes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124323 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -90,9 +90,8 @@ static cl::opt<std::string>
|
|||||||
MatchPrefix("match-prefix", cl::init(""),
|
MatchPrefix("match-prefix", cl::init(""),
|
||||||
cl::desc("Only match instructions with the given prefix"));
|
cl::desc("Only match instructions with the given prefix"));
|
||||||
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
class AsmMatcherInfo;
|
class AsmMatcherInfo;
|
||||||
struct SubtargetFeatureInfo;
|
struct SubtargetFeatureInfo;
|
||||||
|
|
||||||
/// ClassInfo - Helper class for storing the information about a particular
|
/// ClassInfo - Helper class for storing the information about a particular
|
||||||
@@ -693,8 +692,6 @@ void MatchableInfo::TokenizeAsmString(const AsmMatcherInfo &Info) {
|
|||||||
AsmOperands.erase(AsmOperands.begin());
|
AsmOperands.erase(AsmOperands.begin());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bool MatchableInfo::Validate(StringRef CommentDelimiter, bool Hack) const {
|
bool MatchableInfo::Validate(StringRef CommentDelimiter, bool Hack) const {
|
||||||
// Reject matchables with no .s string.
|
// Reject matchables with no .s string.
|
||||||
if (AsmString.empty())
|
if (AsmString.empty())
|
||||||
@@ -750,7 +747,6 @@ bool MatchableInfo::Validate(StringRef CommentDelimiter, bool Hack) const {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// getSingletonRegisterForAsmOperand - If the specified token is a singleton
|
/// getSingletonRegisterForAsmOperand - If the specified token is a singleton
|
||||||
/// register, return the register name, otherwise return a null StringRef.
|
/// register, return the register name, otherwise return a null StringRef.
|
||||||
Record *MatchableInfo::
|
Record *MatchableInfo::
|
||||||
@@ -775,7 +771,6 @@ getSingletonRegisterForAsmOperand(unsigned i, const AsmMatcherInfo &Info) const{
|
|||||||
throw TGError(TheDef->getLoc(), Err);
|
throw TGError(TheDef->getLoc(), Err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static std::string getEnumNameForToken(StringRef Str) {
|
static std::string getEnumNameForToken(StringRef Str) {
|
||||||
std::string Res;
|
std::string Res;
|
||||||
|
|
||||||
@@ -1020,7 +1015,6 @@ AsmMatcherInfo::AsmMatcherInfo(Record *asmParser,
|
|||||||
RegisterPrefix(AsmParser->getValueAsString("RegisterPrefix")) {
|
RegisterPrefix(AsmParser->getValueAsString("RegisterPrefix")) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void AsmMatcherInfo::BuildInfo() {
|
void AsmMatcherInfo::BuildInfo() {
|
||||||
// Build information about all of the AssemblerPredicates.
|
// Build information about all of the AssemblerPredicates.
|
||||||
std::vector<Record*> AllPredicates =
|
std::vector<Record*> AllPredicates =
|
||||||
@@ -1063,8 +1057,8 @@ void AsmMatcherInfo::BuildInfo() {
|
|||||||
|
|
||||||
// Validate tied operands.
|
// Validate tied operands.
|
||||||
if (OI.getTiedRegister() != -1) {
|
if (OI.getTiedRegister() != -1) {
|
||||||
// If we have a tied operand that consists of multiple MCOperands, reject
|
// If we have a tied operand that consists of multiple MCOperands,
|
||||||
// it. We reject aliases and ignore instructions for now.
|
// reject it. We reject aliases and ignore instructions for now.
|
||||||
if (OI.MINumOperands != 1) {
|
if (OI.MINumOperands != 1) {
|
||||||
// FIXME: Should reject these. The ARM backend hits this with $lane
|
// FIXME: Should reject these. The ARM backend hits this with $lane
|
||||||
// in a bunch of instructions. It is unclear what the right answer is.
|
// in a bunch of instructions. It is unclear what the right answer is.
|
||||||
@@ -1652,8 +1646,6 @@ static void EmitIsSubclass(CodeGenTarget &Target,
|
|||||||
OS << "}\n\n";
|
OS << "}\n\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// EmitMatchTokenString - Emit the function to match a token string to the
|
/// EmitMatchTokenString - Emit the function to match a token string to the
|
||||||
/// appropriate match class value.
|
/// appropriate match class value.
|
||||||
static void EmitMatchTokenString(CodeGenTarget &Target,
|
static void EmitMatchTokenString(CodeGenTarget &Target,
|
||||||
@@ -1839,7 +1831,6 @@ static bool EmitMnemonicAliases(raw_ostream &OS, const AsmMatcherInfo &Info) {
|
|||||||
Cases.push_back(std::make_pair(I->first, MatchCode));
|
Cases.push_back(std::make_pair(I->first, MatchCode));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
StringMatcher("Mnemonic", Cases, OS).Emit();
|
StringMatcher("Mnemonic", Cases, OS).Emit();
|
||||||
OS << "}\n\n";
|
OS << "}\n\n";
|
||||||
|
|
||||||
@@ -1954,7 +1945,6 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
|
|||||||
it != ie; ++it)
|
it != ie; ++it)
|
||||||
MaxNumOperands = std::max(MaxNumOperands, (*it)->AsmOperands.size());
|
MaxNumOperands = std::max(MaxNumOperands, (*it)->AsmOperands.size());
|
||||||
|
|
||||||
|
|
||||||
// Emit the static match table; unused classes get initalized to 0 which is
|
// Emit the static match table; unused classes get initalized to 0 which is
|
||||||
// guaranteed to be InvalidMatchClass.
|
// guaranteed to be InvalidMatchClass.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user