diff options
author | Stephen Hines <srhines@google.com> | 2014-05-29 02:49:00 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2014-05-29 02:49:00 -0700 |
commit | dce4a407a24b04eebc6a376f8e62b41aaa7b071f (patch) | |
tree | dcebc53f2b182f145a2e659393bf9a0472cedf23 /utils/TableGen/FixedLenDecoderEmitter.cpp | |
parent | 220b921aed042f9e520c26cffd8282a94c66c3d5 (diff) | |
download | external_llvm-dce4a407a24b04eebc6a376f8e62b41aaa7b071f.zip external_llvm-dce4a407a24b04eebc6a376f8e62b41aaa7b071f.tar.gz external_llvm-dce4a407a24b04eebc6a376f8e62b41aaa7b071f.tar.bz2 |
Update LLVM for 3.5 rebase (r209712).
Change-Id: I149556c940fb7dc92d075273c87ff584f400941f
Diffstat (limited to 'utils/TableGen/FixedLenDecoderEmitter.cpp')
-rw-r--r-- | utils/TableGen/FixedLenDecoderEmitter.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/utils/TableGen/FixedLenDecoderEmitter.cpp b/utils/TableGen/FixedLenDecoderEmitter.cpp index e249a94..42639cc 100644 --- a/utils/TableGen/FixedLenDecoderEmitter.cpp +++ b/utils/TableGen/FixedLenDecoderEmitter.cpp @@ -12,8 +12,6 @@ // //===----------------------------------------------------------------------===// -#define DEBUG_TYPE "decoder-emitter" - #include "CodeGenTarget.h" #include "llvm/ADT/APInt.h" #include "llvm/ADT/SmallString.h" @@ -34,6 +32,8 @@ using namespace llvm; +#define DEBUG_TYPE "decoder-emitter" + namespace { struct EncodingField { unsigned Base, Width, Offset; @@ -347,7 +347,7 @@ public: unsigned BW, const FixedLenDecoderEmitter *E) : AllInstructions(Insts), Opcodes(IDs), Operands(Ops), Filters(), - Parent(NULL), BestIndex(-1), BitWidth(BW), Emitter(E) { + Parent(nullptr), BestIndex(-1), BitWidth(BW), Emitter(E) { for (unsigned i = 0; i < BitWidth; ++i) FilterBitValues.push_back(BIT_UNFILTERED); @@ -1776,7 +1776,7 @@ static bool populateInstruction(CodeGenTarget &Target, // Determine if Vals[i] actually contributes to the Inst encoding. unsigned bi = 0; for (; bi < Bits.getNumBits(); ++bi) { - VarInit *Var = 0; + VarInit *Var = nullptr; VarBitInit *BI = dyn_cast<VarBitInit>(Bits.getBit(bi)); if (BI) Var = dyn_cast<VarInit>(BI->getBitVar()); @@ -1798,7 +1798,7 @@ static bool populateInstruction(CodeGenTarget &Target, // Get the bit range for this operand: unsigned bitStart = bi++, bitWidth = 1; for (; bi < Bits.getNumBits(); ++bi) { - VarInit *Var = 0; + VarInit *Var = nullptr; VarBitInit *BI = dyn_cast<VarBitInit>(Bits.getBit(bi)); if (BI) Var = dyn_cast<VarInit>(BI->getBitVar()); @@ -1837,7 +1837,7 @@ static bool populateInstruction(CodeGenTarget &Target, RecordVal *DecoderString = TypeRecord->getValue("DecoderMethod"); StringInit *String = DecoderString ? - dyn_cast<StringInit>(DecoderString->getValue()) : 0; + dyn_cast<StringInit>(DecoderString->getValue()) : nullptr; if (String && String->getValue() != "") Decoder = String->getValue(); @@ -1866,7 +1866,7 @@ static bool populateInstruction(CodeGenTarget &Target, DecoderString = TypeRecord->getValue("DecoderMethod"); String = DecoderString ? - dyn_cast<StringInit>(DecoderString->getValue()) : 0; + dyn_cast<StringInit>(DecoderString->getValue()) : nullptr; if (!isReg && String && String->getValue() != "") Decoder = String->getValue(); @@ -1938,7 +1938,7 @@ static bool populateInstruction(CodeGenTarget &Target, RecordVal *DecoderString = TypeRecord->getValue("DecoderMethod"); StringInit *String = DecoderString ? - dyn_cast<StringInit>(DecoderString->getValue()) : 0; + dyn_cast<StringInit>(DecoderString->getValue()) : nullptr; if (!isReg && String && String->getValue() != "") Decoder = String->getValue(); @@ -1948,7 +1948,7 @@ static bool populateInstruction(CodeGenTarget &Target, unsigned Offset = 0; for (unsigned bi = 0; bi < Bits.getNumBits(); ++bi) { - VarInit *Var = 0; + VarInit *Var = nullptr; VarBitInit *BI = dyn_cast<VarBitInit>(Bits.getBit(bi)); if (BI) Var = dyn_cast<VarInit>(BI->getBitVar()); |