mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-14 04:57:33 +00:00
A few 80 column cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116069 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9ed2cee105
commit
bb16824dc3
@ -801,7 +801,7 @@ void FilterChooser::emitTop(raw_ostream &o, unsigned &Indentation) {
|
|||||||
|
|
||||||
o << '\n';
|
o << '\n';
|
||||||
|
|
||||||
o.indent(Indentation) << "static uint16_t decodeInstruction(field_t insn) {\n";
|
o.indent(Indentation) <<"static uint16_t decodeInstruction(field_t insn) {\n";
|
||||||
|
|
||||||
++Indentation; ++Indentation;
|
++Indentation; ++Indentation;
|
||||||
// Emits code to decode the instructions.
|
// Emits code to decode the instructions.
|
||||||
|
@ -1562,7 +1562,8 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
|
|||||||
OS << " Match_Success, Match_MnemonicFail, Match_InvalidOperand,\n";
|
OS << " Match_Success, Match_MnemonicFail, Match_InvalidOperand,\n";
|
||||||
OS << " Match_MissingFeature\n";
|
OS << " Match_MissingFeature\n";
|
||||||
OS << " };\n";
|
OS << " };\n";
|
||||||
OS << " MatchResultTy MatchInstructionImpl(const SmallVectorImpl<MCParsedAsmOperand*>"
|
OS << " MatchResultTy MatchInstructionImpl(const "
|
||||||
|
<< "SmallVectorImpl<MCParsedAsmOperand*>"
|
||||||
<< " &Operands, MCInst &Inst, unsigned &ErrorInfo);\n\n";
|
<< " &Operands, MCInst &Inst, unsigned &ErrorInfo);\n\n";
|
||||||
OS << "#endif // GET_ASSEMBLER_HEADER_INFO\n\n";
|
OS << "#endif // GET_ASSEMBLER_HEADER_INFO\n\n";
|
||||||
|
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
static const std::vector<StringRef> getValueAsListOfStrings(Record &R,
|
static const std::vector<StringRef>
|
||||||
StringRef FieldName) {
|
getValueAsListOfStrings(Record &R, StringRef FieldName) {
|
||||||
ListInit *List = R.getValueAsListInit(FieldName);
|
ListInit *List = R.getValueAsListInit(FieldName);
|
||||||
assert (List && "Got a null ListInit");
|
assert (List && "Got a null ListInit");
|
||||||
|
|
||||||
@ -171,7 +171,8 @@ namespace {
|
|||||||
OS << "char *" << getLowerName() << ";";
|
OS << "char *" << getLowerName() << ";";
|
||||||
}
|
}
|
||||||
void writePCHReadDecls(raw_ostream &OS) const {
|
void writePCHReadDecls(raw_ostream &OS) const {
|
||||||
OS << " std::string " << getLowerName() << "= ReadString(Record, Idx);\n";
|
OS << " std::string " << getLowerName()
|
||||||
|
<< "= ReadString(Record, Idx);\n";
|
||||||
}
|
}
|
||||||
void writePCHReadArgs(raw_ostream &OS) const {
|
void writePCHReadArgs(raw_ostream &OS) const {
|
||||||
OS << getLowerName();
|
OS << getLowerName();
|
||||||
|
@ -479,8 +479,8 @@ void DumpDepVars(MultipleUseVarSet &DepVars) {
|
|||||||
DEBUG(errs() << "<empty set>");
|
DEBUG(errs() << "<empty set>");
|
||||||
} else {
|
} else {
|
||||||
DEBUG(errs() << "[ ");
|
DEBUG(errs() << "[ ");
|
||||||
for (MultipleUseVarSet::const_iterator i = DepVars.begin(), e = DepVars.end();
|
for (MultipleUseVarSet::const_iterator i = DepVars.begin(),
|
||||||
i != e; ++i) {
|
e = DepVars.end(); i != e; ++i) {
|
||||||
DEBUG(errs() << (*i) << " ");
|
DEBUG(errs() << (*i) << " ");
|
||||||
}
|
}
|
||||||
DEBUG(errs() << "]");
|
DEBUG(errs() << "]");
|
||||||
@ -2973,7 +2973,8 @@ void CodeGenDAGPatterns::GenerateVariants() {
|
|||||||
DEBUG(errs() << "Dependent/multiply used variables: ");
|
DEBUG(errs() << "Dependent/multiply used variables: ");
|
||||||
DEBUG(DumpDepVars(DepVars));
|
DEBUG(DumpDepVars(DepVars));
|
||||||
DEBUG(errs() << "\n");
|
DEBUG(errs() << "\n");
|
||||||
GenerateVariantsOf(PatternsToMatch[i].getSrcPattern(), Variants, *this, DepVars);
|
GenerateVariantsOf(PatternsToMatch[i].getSrcPattern(), Variants, *this,
|
||||||
|
DepVars);
|
||||||
|
|
||||||
assert(!Variants.empty() && "Must create at least original variant!");
|
assert(!Variants.empty() && "Must create at least original variant!");
|
||||||
Variants.erase(Variants.begin()); // Remove the original pattern.
|
Variants.erase(Variants.begin()); // Remove the original pattern.
|
||||||
@ -3000,7 +3001,8 @@ void CodeGenDAGPatterns::GenerateVariants() {
|
|||||||
PatternsToMatch[p].getPredicates())
|
PatternsToMatch[p].getPredicates())
|
||||||
continue;
|
continue;
|
||||||
// Check to see if this variant already exists.
|
// Check to see if this variant already exists.
|
||||||
if (Variant->isIsomorphicTo(PatternsToMatch[p].getSrcPattern(), DepVars)) {
|
if (Variant->isIsomorphicTo(PatternsToMatch[p].getSrcPattern(),
|
||||||
|
DepVars)) {
|
||||||
DEBUG(errs() << " *** ALREADY EXISTS, ignoring variant.\n");
|
DEBUG(errs() << " *** ALREADY EXISTS, ignoring variant.\n");
|
||||||
AlreadyExists = true;
|
AlreadyExists = true;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user