/freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | Record.cpp | 75 std::map<int64_t, IntInit *> TheIntInitPool; 417 return IntInit::get(getRecordKeeper(), getValue()); in convertInitializerTo() 478 return IntInit::get(getRecordKeeper(), Result); in convertInitializerTo() 553 IntInit *IntInit::get(RecordKeeper &RK, int64_t V) { in get() 554 IntInit *&I = RK.getImpl().TheIntInitPool[V]; in get() 556 I = new (RK.getImpl().Allocator) IntInit(RK, V); in get() 560 std::string IntInit::getAsString() const { in getAsString() 570 Init *IntInit::convertInitializerTo(RecTy *Ty) const { in convertInitializerTo() 572 return const_cast<IntInit *>(this); in convertInitializerTo() 598 IntInit::convertInitializerBitRange(ArrayRef<unsigned> Bits) const { in convertInitializerBitRange() [all …]
|
H A D | SetTheory.cpp | 89 IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[1]); in apply() 184 if (IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[3])) { in apply() 198 if (IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[1])) in apply() 205 if (IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[2])) in apply()
|
H A D | TGParser.cpp | 861 RHS = IntInit::get(Records, i); in ParseSliceElement() 975 IntInit *II = dyn_cast_or_null<IntInit>(CurVal); in ParseRangePiece() 995 IntInit *II_End = dyn_cast_or_null<IntInit>(I_End); in ParseRangePiece() 1832 LHS = IntInit::get(Records, 0); in ParseOperation() 1835 RHS = IntInit::get(Records, 1); in ParseOperation() 1839 LHS = IntInit::get(Records, 0); in ParseOperation() 1841 RHS = IntInit::get(Records, 1); in ParseOperation() 1856 RHS = IntInit::get(Records, 1); in ParseOperation() 2245 RHS = IntInit::get(Records, std::numeric_limits<int64_t>::max()); in ParseOperationSubstr() 2333 RHS = IntInit::get(Records, 0); in ParseOperationFind() [all …]
|
H A D | Error.cpp | 160 auto *CondValue = dyn_cast_or_null<IntInit>(Condition->convertInitializerTo( in CheckAssert()
|
H A D | JSONBackend.cpp | 57 } else if (auto *Int = dyn_cast<IntInit>(&I)) { in translateInit()
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/ |
H A D | VarLenCodeEmitterGen.cpp | 171 if (!isa<StringInit>(OperandName) || !isa<IntInit>(NumBits)) in buildRec() 174 auto NumBitsVal = cast<IntInit>(NumBits)->getValue(); in buildRec() 191 if (!isa<StringInit>(OperandName) || !isa<IntInit>(HiBit) || in buildRec() 192 !isa<IntInit>(LoBit)) in buildRec() 195 auto HiBitVal = cast<IntInit>(HiBit)->getValue(), in buildRec() 196 LoBitVal = cast<IntInit>(LoBit)->getValue(); in buildRec() 475 LoBit = static_cast<unsigned>(cast<IntInit>(DV->getArg(2))->getValue()); in getInstructionCaseForEncoding()
|
H A D | CodeGenInstAlias.cpp | 108 if (IntInit *II = dyn_cast<IntInit>(Arg)) { in tryAliasOpMatch() 126 IntInit *II = dyn_cast_or_null<IntInit>( in tryAliasOpMatch()
|
H A D | CodeGenDAGPatterns.cpp | 1027 IntInit *IntVal = dyn_cast<IntInit>(Val); in getPredCode() 1438 if (P.isLeaf() && isa<IntInit>(P.getLeafValue())) in getPatternSize() 1465 if (isa<IntInit>(Child.getLeafValue())) in getPatternSize() 2337 unsigned IID = cast<IntInit>(getChild(0).getLeafValue())->getValue(); in getIntrinsicInfo() 2465 if (IntInit *II = dyn_cast<IntInit>(getLeafValue())) { in ApplyTypeConstraints() 2742 if (N.isLeaf() && isa<IntInit>(N.getLeafValue())) in OnlyOnRHSOfCommutative() 2878 if (isa<IntInit>(TheInit) || isa<BitInit>(TheInit)) { in ParseTreePattern() 2889 if (!II || !isa<IntInit>(II)) in ParseTreePattern() 2987 IntInit::get(RK, IID), 1)); in ParseTreePattern()
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | PseudoLoweringEmitter.cpp | 108 } else if (IntInit *II = dyn_cast<IntInit>(Dag->getArg(i))) { in addDagOperandMapping() 114 cast<IntInit>(BI->convertInitializerTo(IntRecTy::get(Records))); in addDagOperandMapping()
|
H A D | DAGISelMatcherGen.cpp | 205 if (IntInit *II = dyn_cast<IntInit>(N.getLeafValue())) { in EmitLeafMatchCode() 339 if (IntInit *II = dyn_cast<IntInit>(N.getChild(1).getLeafValue())) { in EmitOperatorMatchCode() 668 if (IntInit *II = dyn_cast<IntInit>(N.getLeafValue())) { in EmitResultLeafAsOperand()
|
H A D | GlobalISelEmitter.cpp | 134 IntInit *IntVal = dyn_cast<IntInit>(Val); in explainPredicates() 580 IntInit *IntVal = dyn_cast<IntInit>(Val); in addBuiltinPredicates() 730 if (isa<IntInit>(SrcInit)) { in createAndImportSelDAGMatcher() 820 if (IntInit *SrcIntInit = dyn_cast<IntInit>(SrcInit)) { in createAndImportSelDAGMatcher() 1084 if (auto *ChildInt = dyn_cast<IntInit>(SrcChild.getLeafValue())) { in importChildMatcher() 1271 if (const IntInit *ChildIntInit = in importExplicitUseRenderer() 1272 dyn_cast<IntInit>(DstChild.getLeafValue())) { in importExplicitUseRenderer() 1773 if (const IntInit *DefaultIntOp = dyn_cast<IntInit>(DefaultOp)) { in importDefaultOperandRenderers()
|
H A D | WebAssemblyDisassemblerEmitter.cpp | 42 cast<IntInit>(Inst.convertInitializerTo(IntRecTy::get(RK))) in emitWebAssemblyDisassemblerTables()
|
H A D | CompressInstEmitter.cpp | 245 } else if (IntInit *II = dyn_cast<IntInit>(Dag->getArg(I - TiedCount))) { in addDagOperandMapping()
|
H A D | IntrinsicEmitter.cpp | 259 TypeSig.push_back(cast<IntInit>(b)->getValue()); in ComputeFixedEncoding()
|
H A D | SearchableTableEmitter.cpp | 37 return cast<IntInit>( in getAsInt()
|
H A D | DecoderEmitter.cpp | 1939 Offset = cast<IntInit>(DI->getArg(2))->getValue(); in parseVarLenInstOperand()
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/Common/GlobalISel/ |
H A D | PatternParser.cpp | 210 if (const auto *IntImm = dyn_cast<IntInit>(OpInit)) { in parseInstructionPatternOperand() 234 const auto *Val = dyn_cast<IntInit>(DagOp->getArg(0)); in parseInstructionPatternOperand()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/ |
H A D | Record.h | 631 class IntInit : public TypedInit { 634 explicit IntInit(RecordKeeper &RK, int64_t V) in IntInit() function 638 IntInit(const IntInit &) = delete; 639 IntInit &operator=(const IntInit &) = delete; 645 static IntInit *get(RecordKeeper &RK, int64_t V);
|
/freebsd/contrib/llvm-project/clang/utils/TableGen/ |
H A D | MveEmitter.cpp | 1205 if (auto *II = dyn_cast<IntInit>(D->getArg(1))) { in getCodeForDag() 1289 if (auto *II = dyn_cast<IntInit>(Arg)) in getCodeForDagArg() 1454 } else if (auto *II = dyn_cast<IntInit>(CodeDag->getArg(i))) { in ACLEIntrinsic()
|
H A D | NeonEmitter.cpp | 1601 int64_t VectorSize = cast<IntInit>(Expr->getArg(0))->getValue(); in emitDagShuffle()
|