mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Remove several unused variables.
Patch by Alp Toker. llvm-svn: 191757
This commit is contained in:
parent
d2a449d3de
commit
a279462828
@ -166,7 +166,6 @@ bool PathProfileVerifier::runOnModule (Module &M) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string errorInfo;
|
|
||||||
std::string filename = EdgeProfileFilename;
|
std::string filename = EdgeProfileFilename;
|
||||||
|
|
||||||
// Open a handle to the file
|
// Open a handle to the file
|
||||||
|
@ -2393,7 +2393,6 @@ bool LLParser::ParseValID(ValID &ID, PerFunctionState *PFS) {
|
|||||||
Lex.Lex();
|
Lex.Lex();
|
||||||
|
|
||||||
ValID Fn, Label;
|
ValID Fn, Label;
|
||||||
LocTy FnLoc, LabelLoc;
|
|
||||||
|
|
||||||
if (ParseToken(lltok::lparen, "expected '(' in block address expression") ||
|
if (ParseToken(lltok::lparen, "expected '(' in block address expression") ||
|
||||||
ParseValID(Fn) ||
|
ParseValID(Fn) ||
|
||||||
@ -3185,7 +3184,6 @@ bool LLParser::ParseBasicBlock(PerFunctionState &PFS) {
|
|||||||
|
|
||||||
// Parse the instructions in this block until we get a terminator.
|
// Parse the instructions in this block until we get a terminator.
|
||||||
Instruction *Inst;
|
Instruction *Inst;
|
||||||
SmallVector<std::pair<unsigned, MDNode *>, 4> MetadataOnInst;
|
|
||||||
do {
|
do {
|
||||||
// This instruction may have three possibilities for a name: a) none
|
// This instruction may have three possibilities for a name: a) none
|
||||||
// specified, b) name specified "%foo =", c) number specified: "%4 =".
|
// specified, b) name specified "%foo =", c) number specified: "%4 =".
|
||||||
|
@ -1949,7 +1949,6 @@ void SelectionDAG::ComputeMaskedBits(SDValue Op, APInt &KnownZero,
|
|||||||
case ISD::SIGN_EXTEND: {
|
case ISD::SIGN_EXTEND: {
|
||||||
EVT InVT = Op.getOperand(0).getValueType();
|
EVT InVT = Op.getOperand(0).getValueType();
|
||||||
unsigned InBits = InVT.getScalarType().getSizeInBits();
|
unsigned InBits = InVT.getScalarType().getSizeInBits();
|
||||||
APInt InSignBit = APInt::getSignBit(InBits);
|
|
||||||
APInt NewBits = APInt::getHighBitsSet(BitWidth, BitWidth - InBits);
|
APInt NewBits = APInt::getHighBitsSet(BitWidth, BitWidth - InBits);
|
||||||
|
|
||||||
KnownZero = KnownZero.trunc(InBits);
|
KnownZero = KnownZero.trunc(InBits);
|
||||||
@ -2061,7 +2060,6 @@ void SelectionDAG::ComputeMaskedBits(SDValue Op, APInt &KnownZero,
|
|||||||
const APInt &RA = Rem->getAPIntValue().abs();
|
const APInt &RA = Rem->getAPIntValue().abs();
|
||||||
if (RA.isPowerOf2()) {
|
if (RA.isPowerOf2()) {
|
||||||
APInt LowBits = RA - 1;
|
APInt LowBits = RA - 1;
|
||||||
APInt Mask2 = LowBits | APInt::getSignBit(BitWidth);
|
|
||||||
ComputeMaskedBits(Op.getOperand(0), KnownZero2,KnownOne2,Depth+1);
|
ComputeMaskedBits(Op.getOperand(0), KnownZero2,KnownOne2,Depth+1);
|
||||||
|
|
||||||
// The low bits of the first operand are unchanged by the srem.
|
// The low bits of the first operand are unchanged by the srem.
|
||||||
@ -3787,7 +3785,7 @@ static SDValue getMemmoveLoadsAndStores(SelectionDAG &DAG, SDLoc dl,
|
|||||||
for (unsigned i = 0; i < NumMemOps; i++) {
|
for (unsigned i = 0; i < NumMemOps; i++) {
|
||||||
EVT VT = MemOps[i];
|
EVT VT = MemOps[i];
|
||||||
unsigned VTSize = VT.getSizeInBits() / 8;
|
unsigned VTSize = VT.getSizeInBits() / 8;
|
||||||
SDValue Value, Store;
|
SDValue Value;
|
||||||
|
|
||||||
Value = DAG.getLoad(VT, dl, Chain,
|
Value = DAG.getLoad(VT, dl, Chain,
|
||||||
getMemBasePlusOffset(Src, SrcOff, dl, DAG),
|
getMemBasePlusOffset(Src, SrcOff, dl, DAG),
|
||||||
@ -3803,7 +3801,7 @@ static SDValue getMemmoveLoadsAndStores(SelectionDAG &DAG, SDLoc dl,
|
|||||||
for (unsigned i = 0; i < NumMemOps; i++) {
|
for (unsigned i = 0; i < NumMemOps; i++) {
|
||||||
EVT VT = MemOps[i];
|
EVT VT = MemOps[i];
|
||||||
unsigned VTSize = VT.getSizeInBits() / 8;
|
unsigned VTSize = VT.getSizeInBits() / 8;
|
||||||
SDValue Value, Store;
|
SDValue Store;
|
||||||
|
|
||||||
Store = DAG.getStore(Chain, dl, LoadValues[i],
|
Store = DAG.getStore(Chain, dl, LoadValues[i],
|
||||||
getMemBasePlusOffset(Dst, DstOff, dl, DAG),
|
getMemBasePlusOffset(Dst, DstOff, dl, DAG),
|
||||||
|
@ -2022,7 +2022,6 @@ HandleMergeInputChains(SmallVectorImpl<SDNode*> &ChainNodesMatched,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SDValue Res;
|
|
||||||
if (InputChains.size() == 1)
|
if (InputChains.size() == 1)
|
||||||
return InputChains[0];
|
return InputChains[0];
|
||||||
return CurDAG->getNode(ISD::TokenFactor, SDLoc(ChainNodesMatched[0]),
|
return CurDAG->getNode(ISD::TokenFactor, SDLoc(ChainNodesMatched[0]),
|
||||||
|
@ -638,8 +638,6 @@ bothUsedInPHI(const MachineBasicBlock &A,
|
|||||||
|
|
||||||
bool
|
bool
|
||||||
TailDuplicatePass::canCompletelyDuplicateBB(MachineBasicBlock &BB) {
|
TailDuplicatePass::canCompletelyDuplicateBB(MachineBasicBlock &BB) {
|
||||||
SmallPtrSet<MachineBasicBlock*, 8> Succs(BB.succ_begin(), BB.succ_end());
|
|
||||||
|
|
||||||
for (MachineBasicBlock::pred_iterator PI = BB.pred_begin(),
|
for (MachineBasicBlock::pred_iterator PI = BB.pred_begin(),
|
||||||
PE = BB.pred_end(); PI != PE; ++PI) {
|
PE = BB.pred_end(); PI != PE; ++PI) {
|
||||||
MachineBasicBlock *PredBB = *PI;
|
MachineBasicBlock *PredBB = *PI;
|
||||||
|
@ -219,5 +219,8 @@ void llvm::DisplayGraph(StringRef FilenameRef, bool wait,
|
|||||||
errs() << "Running 'dotty' program... ";
|
errs() << "Running 'dotty' program... ";
|
||||||
if (!ExecGraphViewer(dotty, args, Filename, wait, ErrMsg))
|
if (!ExecGraphViewer(dotty, args, Filename, wait, ErrMsg))
|
||||||
return;
|
return;
|
||||||
|
#else
|
||||||
|
(void)Filename;
|
||||||
|
(void)ErrMsg;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -9814,7 +9814,6 @@ static SDValue Lower256IntVSETCC(SDValue Op, SelectionDAG &DAG) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static SDValue LowerIntVSETCC_AVX512(SDValue Op, SelectionDAG &DAG) {
|
static SDValue LowerIntVSETCC_AVX512(SDValue Op, SelectionDAG &DAG) {
|
||||||
SDValue Cond;
|
|
||||||
SDValue Op0 = Op.getOperand(0);
|
SDValue Op0 = Op.getOperand(0);
|
||||||
SDValue Op1 = Op.getOperand(1);
|
SDValue Op1 = Op.getOperand(1);
|
||||||
SDValue CC = Op.getOperand(2);
|
SDValue CC = Op.getOperand(2);
|
||||||
@ -9850,7 +9849,6 @@ static SDValue LowerIntVSETCC_AVX512(SDValue Op, SelectionDAG &DAG) {
|
|||||||
|
|
||||||
static SDValue LowerVSETCC(SDValue Op, const X86Subtarget *Subtarget,
|
static SDValue LowerVSETCC(SDValue Op, const X86Subtarget *Subtarget,
|
||||||
SelectionDAG &DAG) {
|
SelectionDAG &DAG) {
|
||||||
SDValue Cond;
|
|
||||||
SDValue Op0 = Op.getOperand(0);
|
SDValue Op0 = Op.getOperand(0);
|
||||||
SDValue Op1 = Op.getOperand(1);
|
SDValue Op1 = Op.getOperand(1);
|
||||||
SDValue CC = Op.getOperand(2);
|
SDValue CC = Op.getOperand(2);
|
||||||
|
@ -46,8 +46,6 @@ X86SelectionDAGInfo::EmitTargetCodeForMemset(SelectionDAG &DAG, SDLoc dl,
|
|||||||
!ConstantSize ||
|
!ConstantSize ||
|
||||||
ConstantSize->getZExtValue() >
|
ConstantSize->getZExtValue() >
|
||||||
Subtarget->getMaxInlineSizeThreshold()) {
|
Subtarget->getMaxInlineSizeThreshold()) {
|
||||||
SDValue InFlag(0, 0);
|
|
||||||
|
|
||||||
// Check to see if there is a specialized entry-point for memory zeroing.
|
// Check to see if there is a specialized entry-point for memory zeroing.
|
||||||
ConstantSDNode *V = dyn_cast<ConstantSDNode>(Src);
|
ConstantSDNode *V = dyn_cast<ConstantSDNode>(Src);
|
||||||
|
|
||||||
|
@ -927,8 +927,7 @@ bool AddressSanitizerModule::runOnModule(Module &M) {
|
|||||||
StructType *GlobalStructTy = StructType::get(IntptrTy, IntptrTy,
|
StructType *GlobalStructTy = StructType::get(IntptrTy, IntptrTy,
|
||||||
IntptrTy, IntptrTy,
|
IntptrTy, IntptrTy,
|
||||||
IntptrTy, IntptrTy, NULL);
|
IntptrTy, IntptrTy, NULL);
|
||||||
SmallVector<Constant *, 16> Initializers(n), DynamicInit;
|
SmallVector<Constant *, 16> Initializers(n);
|
||||||
|
|
||||||
|
|
||||||
Function *CtorFunc = M.getFunction(kAsanModuleCtorName);
|
Function *CtorFunc = M.getFunction(kAsanModuleCtorName);
|
||||||
assert(CtorFunc);
|
assert(CtorFunc);
|
||||||
|
@ -248,7 +248,6 @@ BasicBlock *llvm::SplitEdge(BasicBlock *BB, BasicBlock *Succ, Pass *P) {
|
|||||||
|
|
||||||
// If the edge isn't critical, then BB has a single successor or Succ has a
|
// If the edge isn't critical, then BB has a single successor or Succ has a
|
||||||
// single pred. Split the block.
|
// single pred. Split the block.
|
||||||
BasicBlock::iterator SplitPoint;
|
|
||||||
if (BasicBlock *SP = Succ->getSinglePredecessor()) {
|
if (BasicBlock *SP = Succ->getSinglePredecessor()) {
|
||||||
// If the successor only has a single pred, split the top of the successor
|
// If the successor only has a single pred, split the top of the successor
|
||||||
// block.
|
// block.
|
||||||
|
@ -346,7 +346,6 @@ splitLiveRangesLiveAcrossInvokes(SmallVectorImpl<InvokeInst*> &Invokes) {
|
|||||||
// Scan all of the uses and see if the live range is live across an unwind
|
// Scan all of the uses and see if the live range is live across an unwind
|
||||||
// edge. If we find a use live across an invoke edge, create an alloca
|
// edge. If we find a use live across an invoke edge, create an alloca
|
||||||
// and spill the value.
|
// and spill the value.
|
||||||
std::set<InvokeInst*> InvokesWithStoreInserted;
|
|
||||||
|
|
||||||
// Find all of the blocks that this value is live in.
|
// Find all of the blocks that this value is live in.
|
||||||
std::set<BasicBlock*> LiveBBs;
|
std::set<BasicBlock*> LiveBBs;
|
||||||
|
@ -3758,7 +3758,6 @@ bool LoopVectorizationLegality::canVectorizeMemory() {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
SmallPtrSet<Value *, 16> ReadOnlyPtr;
|
|
||||||
for (I = Loads.begin(), IE = Loads.end(); I != IE; ++I) {
|
for (I = Loads.begin(), IE = Loads.end(); I != IE; ++I) {
|
||||||
LoadInst *LD = cast<LoadInst>(*I);
|
LoadInst *LD = cast<LoadInst>(*I);
|
||||||
Value* Ptr = LD->getPointerOperand();
|
Value* Ptr = LD->getPointerOperand();
|
||||||
|
@ -2172,7 +2172,6 @@ private:
|
|||||||
assert(isPowerOf2_32(ReduxWidth) &&
|
assert(isPowerOf2_32(ReduxWidth) &&
|
||||||
"We only handle power-of-two reductions for now");
|
"We only handle power-of-two reductions for now");
|
||||||
|
|
||||||
SmallVector<Constant *, 32> ShuffleMask(ReduxWidth, 0);
|
|
||||||
Value *TmpVec = ValToReduce;
|
Value *TmpVec = ValToReduce;
|
||||||
for (unsigned i = ReduxWidth / 2; i != 0; i >>= 1) {
|
for (unsigned i = ReduxWidth / 2; i != 0; i >>= 1) {
|
||||||
if (IsPairwiseReduction) {
|
if (IsPairwiseReduction) {
|
||||||
|
@ -301,7 +301,6 @@ std::string BugDriver::executeProgram(const Module *Program,
|
|||||||
if (AI == 0) AI = Interpreter;
|
if (AI == 0) AI = Interpreter;
|
||||||
assert(AI && "Interpreter should have been created already!");
|
assert(AI && "Interpreter should have been created already!");
|
||||||
bool CreatedBitcode = false;
|
bool CreatedBitcode = false;
|
||||||
std::string ErrMsg;
|
|
||||||
if (BitcodeFile.empty()) {
|
if (BitcodeFile.empty()) {
|
||||||
// Emit the program to a bitcode file...
|
// Emit the program to a bitcode file...
|
||||||
SmallString<128> UniqueFilename;
|
SmallString<128> UniqueFilename;
|
||||||
|
@ -195,8 +195,6 @@ class FunctionDifferenceEngine {
|
|||||||
BasicBlock::iterator LI = L->begin(), LE = L->end();
|
BasicBlock::iterator LI = L->begin(), LE = L->end();
|
||||||
BasicBlock::iterator RI = R->begin();
|
BasicBlock::iterator RI = R->begin();
|
||||||
|
|
||||||
llvm::SmallVector<std::pair<Instruction*,Instruction*>, 20> TentativePairs;
|
|
||||||
|
|
||||||
do {
|
do {
|
||||||
assert(LI != LE && RI != R->end());
|
assert(LI != LE && RI != R->end());
|
||||||
Instruction *LeftI = &*LI, *RightI = &*RI;
|
Instruction *LeftI = &*LI, *RightI = &*RI;
|
||||||
|
@ -82,7 +82,6 @@ int main(int argc, char **argv) {
|
|||||||
Options.UseInitArray = UseInitArray;
|
Options.UseInitArray = UseInitArray;
|
||||||
|
|
||||||
unsigned BaseArg = 0;
|
unsigned BaseArg = 0;
|
||||||
std::string ErrorMessage;
|
|
||||||
|
|
||||||
LTOCodeGenerator CodeGen;
|
LTOCodeGenerator CodeGen;
|
||||||
|
|
||||||
|
@ -260,8 +260,6 @@ static void DisassembleInputMachO2(StringRef Filename,
|
|||||||
getSectionsAndSymbols(Header, MachOOF, Sections, Symbols, FoundFns,
|
getSectionsAndSymbols(Header, MachOOF, Sections, Symbols, FoundFns,
|
||||||
BaseSegmentAddress);
|
BaseSegmentAddress);
|
||||||
|
|
||||||
// Make a copy of the unsorted symbol list. FIXME: duplication
|
|
||||||
std::vector<SymbolRef> UnsortedSymbols(Symbols);
|
|
||||||
// Sort the symbols by address, just in case they didn't come in that way.
|
// Sort the symbols by address, just in case they didn't come in that way.
|
||||||
std::sort(Symbols.begin(), Symbols.end(), SymbolSorter());
|
std::sort(Symbols.begin(), Symbols.end(), SymbolSorter());
|
||||||
|
|
||||||
|
@ -147,9 +147,6 @@ char ProfileInfoPrinterPass::ID = 0;
|
|||||||
|
|
||||||
bool ProfileInfoPrinterPass::runOnModule(Module &M) {
|
bool ProfileInfoPrinterPass::runOnModule(Module &M) {
|
||||||
ProfileInfo &PI = getAnalysis<ProfileInfo>();
|
ProfileInfo &PI = getAnalysis<ProfileInfo>();
|
||||||
std::map<const Function *, unsigned> FuncFreqs;
|
|
||||||
std::map<const BasicBlock*, unsigned> BlockFreqs;
|
|
||||||
std::map<ProfileInfo::Edge, unsigned> EdgeFreqs;
|
|
||||||
|
|
||||||
// Output a report. Eventually, there will be multiple reports selectable on
|
// Output a report. Eventually, there will be multiple reports selectable on
|
||||||
// the command line, for now, just keep things simple.
|
// the command line, for now, just keep things simple.
|
||||||
|
@ -420,8 +420,6 @@ static const EnumEntry<unsigned> ElfSegmentFlags[] = {
|
|||||||
|
|
||||||
template<class ELFT>
|
template<class ELFT>
|
||||||
void ELFDumper<ELFT>::printFileHeaders() {
|
void ELFDumper<ELFT>::printFileHeaders() {
|
||||||
error_code EC;
|
|
||||||
|
|
||||||
const typename ELFO::Elf_Ehdr *Header = Obj->getHeader();
|
const typename ELFO::Elf_Ehdr *Header = Obj->getHeader();
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -512,7 +510,6 @@ template<class ELFT>
|
|||||||
void ELFDumper<ELFT>::printRelocations() {
|
void ELFDumper<ELFT>::printRelocations() {
|
||||||
ListScope D(W, "Relocations");
|
ListScope D(W, "Relocations");
|
||||||
|
|
||||||
error_code EC;
|
|
||||||
int SectionNumber = -1;
|
int SectionNumber = -1;
|
||||||
for (typename ELFO::Elf_Shdr_Iter SecI = Obj->begin_sections(),
|
for (typename ELFO::Elf_Shdr_Iter SecI = Obj->begin_sections(),
|
||||||
SecE = Obj->end_sections();
|
SecE = Obj->end_sections();
|
||||||
@ -769,8 +766,6 @@ template<class ELFT>
|
|||||||
void ELFDumper<ELFT>::printNeededLibraries() {
|
void ELFDumper<ELFT>::printNeededLibraries() {
|
||||||
ListScope D(W, "NeededLibraries");
|
ListScope D(W, "NeededLibraries");
|
||||||
|
|
||||||
error_code EC;
|
|
||||||
|
|
||||||
typedef std::vector<StringRef> LibsTy;
|
typedef std::vector<StringRef> LibsTy;
|
||||||
LibsTy Libs;
|
LibsTy Libs;
|
||||||
|
|
||||||
|
@ -398,8 +398,6 @@ void MachODumper::printDynamicSymbols() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MachODumper::printSymbol(symbol_iterator SymI) {
|
void MachODumper::printSymbol(symbol_iterator SymI) {
|
||||||
error_code EC;
|
|
||||||
|
|
||||||
StringRef SymbolName;
|
StringRef SymbolName;
|
||||||
if (SymI->getName(SymbolName))
|
if (SymI->getName(SymbolName))
|
||||||
SymbolName = "";
|
SymbolName = "";
|
||||||
|
@ -72,7 +72,6 @@ void COFFDumper::dumpSections(unsigned NumSections) {
|
|||||||
const object::coff_relocation *reloc = Obj.getCOFFRelocation(rIter);
|
const object::coff_relocation *reloc = Obj.getCOFFRelocation(rIter);
|
||||||
COFFYAML::Relocation Rel;
|
COFFYAML::Relocation Rel;
|
||||||
object::symbol_iterator Sym = rIter->getSymbol();
|
object::symbol_iterator Sym = rIter->getSymbol();
|
||||||
StringRef Name;
|
|
||||||
Sym->getName(Rel.SymbolName);
|
Sym->getName(Rel.SymbolName);
|
||||||
Rel.VirtualAddress = reloc->VirtualAddress;
|
Rel.VirtualAddress = reloc->VirtualAddress;
|
||||||
Rel.Type = reloc->Type;
|
Rel.Type = reloc->Type;
|
||||||
|
@ -2839,9 +2839,6 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
|
|||||||
unsigned VariantCount = Target.getAsmParserVariantCount();
|
unsigned VariantCount = Target.getAsmParserVariantCount();
|
||||||
for (unsigned VC = 0; VC != VariantCount; ++VC) {
|
for (unsigned VC = 0; VC != VariantCount; ++VC) {
|
||||||
Record *AsmVariant = Target.getAsmParserVariant(VC);
|
Record *AsmVariant = Target.getAsmParserVariant(VC);
|
||||||
std::string CommentDelimiter =
|
|
||||||
AsmVariant->getValueAsString("CommentDelimiter");
|
|
||||||
std::string RegisterPrefix = AsmVariant->getValueAsString("RegisterPrefix");
|
|
||||||
int AsmVariantNo = AsmVariant->getValueAsInt("Variant");
|
int AsmVariantNo = AsmVariant->getValueAsInt("Variant");
|
||||||
|
|
||||||
OS << "static const MatchEntry MatchTable" << VC << "[] = {\n";
|
OS << "static const MatchEntry MatchTable" << VC << "[] = {\n";
|
||||||
@ -2892,9 +2889,6 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
|
|||||||
OS << " default: // unreachable\n";
|
OS << " default: // unreachable\n";
|
||||||
for (unsigned VC = 0; VC != VariantCount; ++VC) {
|
for (unsigned VC = 0; VC != VariantCount; ++VC) {
|
||||||
Record *AsmVariant = Target.getAsmParserVariant(VC);
|
Record *AsmVariant = Target.getAsmParserVariant(VC);
|
||||||
std::string CommentDelimiter =
|
|
||||||
AsmVariant->getValueAsString("CommentDelimiter");
|
|
||||||
std::string RegisterPrefix = AsmVariant->getValueAsString("RegisterPrefix");
|
|
||||||
int AsmVariantNo = AsmVariant->getValueAsInt("Variant");
|
int AsmVariantNo = AsmVariant->getValueAsInt("Variant");
|
||||||
OS << " case " << AsmVariantNo << ": Start = MatchTable" << VC
|
OS << " case " << AsmVariantNo << ": Start = MatchTable" << VC
|
||||||
<< "; End = array_endof(MatchTable" << VC << "); break;\n";
|
<< "; End = array_endof(MatchTable" << VC << "); break;\n";
|
||||||
@ -2950,9 +2944,6 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
|
|||||||
OS << " default: // unreachable\n";
|
OS << " default: // unreachable\n";
|
||||||
for (unsigned VC = 0; VC != VariantCount; ++VC) {
|
for (unsigned VC = 0; VC != VariantCount; ++VC) {
|
||||||
Record *AsmVariant = Target.getAsmParserVariant(VC);
|
Record *AsmVariant = Target.getAsmParserVariant(VC);
|
||||||
std::string CommentDelimiter =
|
|
||||||
AsmVariant->getValueAsString("CommentDelimiter");
|
|
||||||
std::string RegisterPrefix = AsmVariant->getValueAsString("RegisterPrefix");
|
|
||||||
int AsmVariantNo = AsmVariant->getValueAsInt("Variant");
|
int AsmVariantNo = AsmVariant->getValueAsInt("Variant");
|
||||||
OS << " case " << AsmVariantNo << ": Start = MatchTable" << VC
|
OS << " case " << AsmVariantNo << ": Start = MatchTable" << VC
|
||||||
<< "; End = array_endof(MatchTable" << VC << "); break;\n";
|
<< "; End = array_endof(MatchTable" << VC << "); break;\n";
|
||||||
|
@ -836,7 +836,6 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) {
|
|||||||
Cond = std::string("MI->getNumOperands() == ") + llvm::utostr(LastOpNo);
|
Cond = std::string("MI->getNumOperands() == ") + llvm::utostr(LastOpNo);
|
||||||
IAP->addCond(Cond);
|
IAP->addCond(Cond);
|
||||||
|
|
||||||
std::map<StringRef, unsigned> OpMap;
|
|
||||||
bool CantHandle = false;
|
bool CantHandle = false;
|
||||||
|
|
||||||
for (unsigned i = 0, e = LastOpNo; i != e; ++i) {
|
for (unsigned i = 0, e = LastOpNo; i != e; ++i) {
|
||||||
|
@ -240,7 +240,6 @@ public:
|
|||||||
|
|
||||||
void MapTableEmitter::buildRowInstrMap() {
|
void MapTableEmitter::buildRowInstrMap() {
|
||||||
for (unsigned i = 0, e = InstrDefs.size(); i < e; i++) {
|
for (unsigned i = 0, e = InstrDefs.size(); i < e; i++) {
|
||||||
std::vector<Record*> InstrList;
|
|
||||||
Record *CurInstr = InstrDefs[i];
|
Record *CurInstr = InstrDefs[i];
|
||||||
std::vector<Init*> KeyValue;
|
std::vector<Init*> KeyValue;
|
||||||
ListInit *RowFields = InstrMapDesc.getRowFields();
|
ListInit *RowFields = InstrMapDesc.getRowFields();
|
||||||
|
@ -2038,7 +2038,6 @@ void FixedLenDecoderEmitter::run(raw_ostream &o) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
DecoderTableInfo TableInfo;
|
DecoderTableInfo TableInfo;
|
||||||
std::set<unsigned> Sizes;
|
|
||||||
for (std::map<std::pair<std::string, unsigned>,
|
for (std::map<std::pair<std::string, unsigned>,
|
||||||
std::vector<unsigned> >::const_iterator
|
std::vector<unsigned> >::const_iterator
|
||||||
I = OpcMap.begin(), E = OpcMap.end(); I != E; ++I) {
|
I = OpcMap.begin(), E = OpcMap.end(); I != E; ++I) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user