reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
58 return To::classof(&Val); 106 return isa_impl<To, From>::doit(*Val); 122 return isa_impl_wrap<To, SimpleFrom, 132 return isa_impl_cl<To,FromTy>::doit(Val); 142 return isa_impl_wrap<X, const Y, 172 using ret_type = To *; // Pointer arg case, return Ty* 176 using ret_type = const To *; // Constant pointer arg case, return const Ty* 198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type; 204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type; 210 To, From, typename simplify_type<From>::SimpleType>::ret_type; 227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) { 228 typename cast_retty<To, FromTy>::ret_type Res2 256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) { 263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) { 265 return cast_convert_val<X, Y*, 337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) { 342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) { 343 return isa<X>(Val) ? cast<X>(Val) : nullptr; 343 return isa<X>(Val) ? cast<X>(Val) : nullptr; 366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type 368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr; 368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;include/llvm/TableGen/Record.h
571 IntInit(const IntInit &) = delete; 572 IntInit &operator=(const IntInit &) = delete; 572 IntInit &operator=(const IntInit &) = delete; 578 static IntInit *get(int64_t V);lib/TableGen/JSONBackend.cpp
58 } else if (auto *Int = dyn_cast<IntInit>(&I)) {
lib/TableGen/Record.cpp323 return IntInit::get(getValue()); 385 return IntInit::get(Result); 460 IntInit *IntInit::get(int64_t V) { 461 static std::map<int64_t, IntInit*> ThePool; 463 IntInit *&I = ThePool[V]; 464 if (!I) I = new(Allocator) IntInit(V); 722 if (IntInit *LHSi = dyn_cast<IntInit>(LHS)) 722 if (IntInit *LHSi = dyn_cast<IntInit>(LHS)) 782 return IntInit::get(LHSl->size()); 787 return IntInit::get(LHSl->empty()); 789 return IntInit::get(LHSs->getValue().empty()); 924 IntInit *Size = dyn_cast<IntInit>(RHS); 924 IntInit *Size = dyn_cast<IntInit>(RHS); 946 IntInit *L = 947 dyn_cast_or_null<IntInit>(LHS->convertInitializerTo(IntRecTy::get())); 948 IntInit *R = 949 dyn_cast_or_null<IntInit>(RHS->convertInitializerTo(IntRecTy::get())); 985 IntInit *LHSi = 986 dyn_cast_or_null<IntInit>(LHS->convertInitializerTo(IntRecTy::get())); 987 IntInit *RHSi = 988 dyn_cast_or_null<IntInit>(RHS->convertInitializerTo(IntRecTy::get())); 1002 return IntInit::get(Result); 1180 if (IntInit *LHSi = dyn_cast_or_null<IntInit>( 1180 if (IntInit *LHSi = dyn_cast_or_null<IntInit>( 1221 if (IntInit *Value = dyn_cast_or_null<IntInit>( 1221 if (IntInit *Value = dyn_cast_or_null<IntInit>( 1361 return IntInit::get(1); 1368 return IntInit::get(0); 1371 return IntInit::get(0); 1823 if (IntInit *CondI = dyn_cast_or_null<IntInit>( 1823 if (IntInit *CondI = dyn_cast_or_null<IntInit>( 2228 if (IntInit *II = dyn_cast<IntInit>(R->getValue())) 2228 if (IntInit *II = dyn_cast<IntInit>(R->getValue())) 2241 if (IntInit *II = dyn_cast<IntInit>(I)) 2241 if (IntInit *II = dyn_cast<IntInit>(I))lib/TableGen/SetTheory.cpp
90 IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[1]); 90 IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[1]); 185 if (IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[3])) { 185 if (IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[3])) { 199 if (IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[1])) 199 if (IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[1])) 206 if (IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[2])) 206 if (IntInit *II = dyn_cast<IntInit>(Expr->arg_begin()[2]))lib/TableGen/TGParser.cpp
675 IntInit *II = dyn_cast_or_null<IntInit>(CurVal); 675 IntInit *II = dyn_cast_or_null<IntInit>(CurVal); 693 IntInit *II_End = dyn_cast_or_null<IntInit>(I_End); 693 IntInit *II_End = dyn_cast_or_null<IntInit>(I_End); 1783 case tgtok::IntVal: R = IntInit::get(Lex.getCurIntVal()); Lex.Lex(); break; 2502 Values.push_back(IntInit::get(R));tools/clang/utils/TableGen/MveEmitter.cpp
1064 if (auto *II = dyn_cast<IntInit>(Arg)) 1064 if (auto *II = dyn_cast<IntInit>(Arg)) 1195 } else if (auto *II = dyn_cast<IntInit>(CodeDag->getArg(i))) { 1195 } else if (auto *II = dyn_cast<IntInit>(CodeDag->getArg(i))) {tools/clang/utils/TableGen/NeonEmitter.cpp
1711 int64_t VectorSize = cast<IntInit>(Expr->getArg(0))->getValue();
utils/TableGen/CodeGenDAGPatterns.cpp977 IntInit *IntVal = dyn_cast<IntInit>(Val); 977 IntInit *IntVal = dyn_cast<IntInit>(Val); 1346 if (P->isLeaf() && isa<IntInit>(P->getLeafValue())) 1373 if (isa<IntInit>(Child->getLeafValue())) 2213 unsigned IID = cast<IntInit>(getChild(0)->getLeafValue())->getValue(); 2347 if (IntInit *II = dyn_cast<IntInit>(getLeafValue())) { 2347 if (IntInit *II = dyn_cast<IntInit>(getLeafValue())) { 2602 if (N->isLeaf() && isa<IntInit>(N->getLeafValue())) 2734 if (isa<IntInit>(TheInit) || isa<BitInit>(TheInit)) { 2745 if (!II || !isa<IntInit>(II)) 2843 std::make_shared<TreePatternNode>(IntInit::get(IID), 1));utils/TableGen/CodeGenInstruction.cpp
606 if (IntInit *II = dyn_cast<IntInit>(Arg)) { 606 if (IntInit *II = dyn_cast<IntInit>(Arg)) { 624 IntInit *II = 625 dyn_cast_or_null<IntInit>(BI->convertInitializerTo(IntRecTy::get()));utils/TableGen/CodeGenRegisters.cpp
701 RV.setValue(IntInit::get(CostPerUse));
utils/TableGen/DAGISelMatcherGen.cpp206 if (IntInit *II = dyn_cast<IntInit>(N->getLeafValue())) { 206 if (IntInit *II = dyn_cast<IntInit>(N->getLeafValue())) { 344 if (IntInit *II = dyn_cast<IntInit>(N->getChild(1)->getLeafValue())) { 344 if (IntInit *II = dyn_cast<IntInit>(N->getChild(1)->getLeafValue())) { 671 if (IntInit *II = dyn_cast<IntInit>(N->getLeafValue())) { 671 if (IntInit *II = dyn_cast<IntInit>(N->getLeafValue())) {utils/TableGen/GlobalISelEmitter.cpp
241 IntInit *IntVal = dyn_cast<IntInit>(Val); 241 IntInit *IntVal = dyn_cast<IntInit>(Val); 3476 if (isa<IntInit>(SrcInit)) { 3519 IntInit *IntVal = dyn_cast<IntInit>(Val); 3519 IntInit *IntVal = dyn_cast<IntInit>(Val); 3667 if (IntInit *SrcIntInit = dyn_cast<IntInit>(SrcInit)) { 3667 if (IntInit *SrcIntInit = dyn_cast<IntInit>(SrcInit)) { 3875 if (auto *ChildInt = dyn_cast<IntInit>(SrcChild->getLeafValue())) { 3875 if (auto *ChildInt = dyn_cast<IntInit>(SrcChild->getLeafValue())) { 4009 if (const IntInit *ChildIntInit = 4010 dyn_cast<IntInit>(DstChild->getLeafValue())) { 4387 if (const IntInit *DefaultIntOp = dyn_cast<IntInit>(DefaultOp)) { 4387 if (const IntInit *DefaultIntOp = dyn_cast<IntInit>(DefaultOp)) {utils/TableGen/PseudoLoweringEmitter.cpp
103 } else if (IntInit *II = dyn_cast<IntInit>(Dag->getArg(i))) { 103 } else if (IntInit *II = dyn_cast<IntInit>(Dag->getArg(i))) {utils/TableGen/RISCVCompressInstEmitter.cpp
227 } else if (IntInit *II = dyn_cast<IntInit>(Dag->getArg(i - TiedCount))) { 227 } else if (IntInit *II = dyn_cast<IntInit>(Dag->getArg(i - TiedCount))) {utils/TableGen/SearchableTableEmitter.cpp
37 return cast<IntInit>(B->convertInitializerTo(IntRecTy::get()))->getValue();