mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Use std::bitset for SubtargetFeatures
Previously, subtarget features were a bitfield with the underlying type being uint64_t. Since several targets (X86 and ARM, in particular) have hit or were very close to hitting this bound, switching the features to use a bitset. No functional change. Differential Revision: http://reviews.llvm.org/D7065 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229831 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -547,15 +547,15 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num,
|
||||
CodeGenTarget &Target = CDP.getTargetInfo();
|
||||
if (Inst.HasComplexDeprecationPredicate)
|
||||
// Emit a function pointer to the complex predicate method.
|
||||
OS << ",0"
|
||||
OS << ", { } "
|
||||
<< ",&get" << Inst.DeprecatedReason << "DeprecationInfo";
|
||||
else if (!Inst.DeprecatedReason.empty())
|
||||
// Emit the Subtarget feature.
|
||||
OS << "," << Target.getInstNamespace() << "::" << Inst.DeprecatedReason
|
||||
<< ",nullptr";
|
||||
OS << ", { " << Target.getInstNamespace() << "::" << Inst.DeprecatedReason
|
||||
<< "} ,nullptr";
|
||||
else
|
||||
// Instruction isn't deprecated.
|
||||
OS << ",0,nullptr";
|
||||
OS << ", { } ,nullptr";
|
||||
|
||||
OS << " }, // Inst #" << Num << " = " << Inst.TheDef->getName() << "\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user