Home
last modified time | relevance | path

Searched refs:BitsInit (Results 1 – 21 of 21) sorted by relevance

/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DCodeEmitterGen.cpp58 int getVariableBit(const std::string &VarName, BitsInit *BI, int bit);
64 bool addCodeToMergeInOperand(Record *R, BitsInit *BI,
81 int CodeEmitterGen::getVariableBit(const std::string &VarName, BitsInit *BI, in getVariableBit()
96 bool CodeEmitterGen::addCodeToMergeInOperand(Record *R, BitsInit *BI, in addCodeToMergeInOperand()
347 BitsInit *BI = EncodingDef->getValueAsBitsInit("Inst"); in addInstructionCasesForEncoding()
433 BitsInit *BI = EncodingDef->getValueAsBitsInit("Inst"); in emitInstructionBaseValues()
497 BitsInit *BI = KV.second->getValueAsBitsInit("Inst"); in run()
504 BitsInit *BI = R->getValueAsBitsInit("Inst"); in run()
H A DDecoderEmitter.cpp211 static bit_value_t bitFromBits(const BitsInit &bits, unsigned index) { in bitFromBits()
220 static void dumpBits(raw_ostream &o, const BitsInit &bits) { in dumpBits()
238 static BitsInit &getBitsField(const Record &def, StringRef str) { in getBitsField()
240 if (BitsInit *Bits = dyn_cast<BitsInit>(RV->getValue())) in getBitsField()
248 if (const BitsInit *BI = dyn_cast<BitsInit>(SI.Value)) { in getBitsField()
260 return *BitsInit::get(def.getRecords(), Bits); in getBitsField()
463 BitsInit &Bits = getBitsField(*EncodingDef, "Inst"); in insnWithID()
471 const BitsInit *SFBits = RV ? dyn_cast<BitsInit>(RV->getValue()) : nullptr; in insnWithID()
1386 BitsInit *SFBits = RV ? dyn_cast<BitsInit>(RV->getValue()) : nullptr; in emitSoftFailTableEntry()
1390 BitsInit *InstBits = EncodingDef->getValueAsBitsInit("Inst"); in emitSoftFailTableEntry()
[all …]
H A DX86FoldTablesEmitter.cpp248 static uint8_t byteFromBitsInit(const BitsInit *B) { in byteFromBitsInit()
490 BitsInit *VectSize = RegRec->getValueAsBitsInit("VectSize"); in addEntryWithFlags()
659 const BitsInit *FormBits = Rec->getValueAsBitsInit("FormBits"); in run()
H A DX86EVEX2VEXTablesEmitter.cpp
H A DPseudoLoweringEmitter.cpp112 } else if (auto *BI = dyn_cast<BitsInit>(Dag->getArg(i))) { in addDagOperandMapping()
H A DDFAEmitter.cpp309 BitsInit *NewStateInit = R->getValueAsBitsInit("NewState"); in Transition()
H A DX86InstrMappingEmitter.cpp110 static uint8_t byteFromBitsInit(const BitsInit *B) { in byteFromBitsInit()
H A DSearchableTableEmitter.cpp123 } else if (BitsInit *BI = dyn_cast<BitsInit>(I)) in primaryRepresentation()
H A DX86RecognizableInstr.cpp80 static uint8_t byteFromBitsInit(BitsInit &init) { in byteFromBitsInit()
107 BitsInit *bits = rec->getValueAsBitsInit(name); in byteFromRec()
H A DInstrInfoEmitter.cpp1292 BitsInit *TSF = Inst.TheDef->getValueAsBitsInit("TSFlags"); in emitRecord()
H A DRegisterInfoEmitter.cpp1072 BitsInit *BI = Reg->getValueAsBitsInit("HWEncoding"); in runMCDesc()
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DClangSACheckersEmitter.cpp62 static inline uint64_t getValueFromBitsInit(const BitsInit *B, const Record &R) { in getValueFromBitsInit()
78 const BitsInit *BI = R.getValueAsBitsInit("Documentation"); in getCheckerDocs()
97 if (BitsInit *BI = R.getValueAsBitsInit("Type")) { in getCheckerOptionType()
114 if (BitsInit *BI = R.getValueAsBitsInit("DevelopmentStage")) { in getDevelopmentStage()
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DRecord.cpp74 FoldingSet<BitsInit> TheBitsInitPool;
422 return BitsInit::get(getRecordKeeper(), const_cast<BitInit *>(this)); in convertInitializerTo()
436 BitsInit *BitsInit::get(RecordKeeper &RK, ArrayRef<Init *> Range) { in get()
442 if (BitsInit *I = RKImpl.TheBitsInitPool.FindNodeOrInsertPos(ID, IP)) in get()
446 alignof(BitsInit)); in get()
447 BitsInit *I = new (Mem) BitsInit(RK, Range.size()); in get()
454 void BitsInit::Profile(FoldingSetNodeID &ID) const { in Profile()
458 Init *BitsInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo()
468 return const_cast<BitsInit *>(this); in convertInitializerTo()
485 BitsInit::convertInitializerBitRange(ArrayRef<unsigned> Bits) const { in convertInitializerBitRange()
[all …]
H A DTGParser.cpp71 BitsInit *BV = cast<BitsInit>(RV.getValue()); in checkBitsConcrete()
99 bool Ok = isa<BitsInit>(V) ? checkBitsConcrete(R, RV) : V->isConcrete(); in checkConcrete()
253 BitsInit *CurVal = dyn_cast<BitsInit>(RV->getValue()); in SetValue()
278 V = BitsInit::get(Records, NewBits); in SetValue()
283 if (BitsInit *BI = dyn_cast<BitsInit>(V)) in SetValue()
1968 if (BitsInit *MHSbits = dyn_cast<BitsInit>(MHS)) in ParseOperation()
1975 if (BitsInit *RHSbits = dyn_cast<BitsInit>(RHS)) in ParseOperation()
2563 if (BitsInit *Vbits = dyn_cast<BitsInit>(V)) in ParseOperationCond()
2647 R = BitsInit::get(Records, Bits); in ParseSimpleValue()
2730 if (BitsInit *BI = dyn_cast<BitsInit>(Vals[i])) { in ParseSimpleValue()
[all …]
H A DJSONBackend.cpp52 } else if (auto *Bits = dyn_cast<BitsInit>(&I)) { in translateInit()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/
H A DCodeGenTarget.cpp367 BitsInit *BI = R->getValueAsBitsInit("Inst"); in reverseBitsForLittleEndianEncoding()
385 BitsInit *NewBI = BitsInit::get(Records, NewBits); in reverseBitsForLittleEndianEncoding()
H A DCodeGenInstAlias.cpp120 if (BitsInit *BI = dyn_cast<BitsInit>(Arg)) { in tryAliasOpMatch()
H A DVarLenCodeEmitterGen.cpp146 if (const auto *BI = dyn_cast<BitsInit>(Arg)) { in buildRec()
387 if (const auto *BI = dyn_cast<BitsInit>(SI->Value)) { in emitInstructionBaseValues()
H A DCodeGenDAGPatterns.cpp2886 if (BitsInit *BI = dyn_cast<BitsInit>(TheInit)) { in ParseTreePattern()
H A DCodeGenRegisters.cpp832 BitsInit *TSF = R->getValueAsBitsInit("TSFlags"); in CodeGenRegisterClass()
/freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DRecord.h580 class BitsInit final : public TypedInit, public FoldingSetNode,
581 public TrailingObjects<BitsInit, Init *> {
584 BitsInit(RecordKeeper &RK, unsigned N) in BitsInit() function
588 BitsInit(const BitsInit &) = delete;
589 BitsInit &operator=(const BitsInit &) = delete;
598 static BitsInit *get(RecordKeeper &RK, ArrayRef<Init *> Range);
1908 BitsInit *getValueAsBitsInit(StringRef FieldName) const;