|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/Support/Casting.h 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,
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;
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp 114 PPCMCExpr::VariantKind &Variant);
659 if (const PPCMCExpr *TE = dyn_cast<PPCMCExpr>(Val)) {
659 if (const PPCMCExpr *TE = dyn_cast<PPCMCExpr>(Val)) {
1231 PPCMCExpr::VariantKind &Variant) {
1233 Variant = PPCMCExpr::VK_PPC_None;
1245 Variant = PPCMCExpr::VK_PPC_LO;
1248 Variant = PPCMCExpr::VK_PPC_HI;
1251 Variant = PPCMCExpr::VK_PPC_HA;
1254 Variant = PPCMCExpr::VK_PPC_HIGH;
1257 Variant = PPCMCExpr::VK_PPC_HIGHA;
1260 Variant = PPCMCExpr::VK_PPC_HIGHER;
1263 Variant = PPCMCExpr::VK_PPC_HIGHERA;
1266 Variant = PPCMCExpr::VK_PPC_HIGHEST;
1269 Variant = PPCMCExpr::VK_PPC_HIGHESTA;
1288 PPCMCExpr::VariantKind LHSVariant, RHSVariant;
1298 if (LHSVariant == PPCMCExpr::VK_PPC_None)
1300 else if (RHSVariant == PPCMCExpr::VK_PPC_None)
1380 PPCMCExpr::VariantKind Variant;
1383 EVal = PPCMCExpr::create(Variant, E, false, getParser().getContext());
1397 PPCMCExpr::VariantKind Variant = PPCMCExpr::VK_PPC_None;
1397 PPCMCExpr::VariantKind Variant = PPCMCExpr::VK_PPC_None;
1408 Variant = PPCMCExpr::VK_PPC_LO;
1410 Variant = PPCMCExpr::VK_PPC_HI;
1412 Variant = PPCMCExpr::VK_PPC_HA;
1414 if (Variant != PPCMCExpr::VK_PPC_None) {
1426 if (Variant != PPCMCExpr::VK_PPC_None) {
1430 EVal = PPCMCExpr::create(Variant, EVal, false, getParser().getContext());
1833 return PPCMCExpr::create(PPCMCExpr::VK_PPC_LO, E, false, Ctx);
1833 return PPCMCExpr::create(PPCMCExpr::VK_PPC_LO, E, false, Ctx);
1835 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HI, E, false, Ctx);
1835 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HI, E, false, Ctx);
1837 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HA, E, false, Ctx);
1837 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HA, E, false, Ctx);
1839 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HIGH, E, false, Ctx);
1839 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HIGH, E, false, Ctx);
1841 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HIGHA, E, false, Ctx);
1841 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HIGHA, E, false, Ctx);
1843 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HIGHER, E, false, Ctx);
1843 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HIGHER, E, false, Ctx);
1845 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HIGHERA, E, false, Ctx);
1845 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HIGHERA, E, false, Ctx);
1847 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HIGHEST, E, false, Ctx);
1847 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HIGHEST, E, false, Ctx);
1849 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HIGHESTA, E, false, Ctx);
1849 return PPCMCExpr::create(PPCMCExpr::VK_PPC_HIGHESTA, E, false, Ctx);
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp 48 switch (cast<PPCMCExpr>(Expr)->getKind()) {
49 case PPCMCExpr::VK_PPC_None:
51 case PPCMCExpr::VK_PPC_LO:
53 case PPCMCExpr::VK_PPC_HI:
55 case PPCMCExpr::VK_PPC_HA:
57 case PPCMCExpr::VK_PPC_HIGH:
59 case PPCMCExpr::VK_PPC_HIGHA:
61 case PPCMCExpr::VK_PPC_HIGHERA:
63 case PPCMCExpr::VK_PPC_HIGHER:
65 case PPCMCExpr::VK_PPC_HIGHEST:
67 case PPCMCExpr::VK_PPC_HIGHESTA:
lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.cpp 20 const PPCMCExpr*
23 return new (Ctx) PPCMCExpr(Kind, Expr, IsDarwin);
lib/Target/PowerPC/MCTargetDesc/PPCMCExpr.h 47 static const PPCMCExpr *create(VariantKind Kind, const MCExpr *Expr,
50 static const PPCMCExpr *createLo(const MCExpr *Expr,
55 static const PPCMCExpr *createHi(const MCExpr *Expr,
60 static const PPCMCExpr *createHa(const MCExpr *Expr,
lib/Target/PowerPC/PPCAsmPrinter.cpp 639 const MCExpr *DeltaHi = PPCMCExpr::createHa(DeltaExpr, false, OutContext);
644 const MCExpr *DeltaLo = PPCMCExpr::createLo(DeltaExpr, false, OutContext);
1520 PPCMCExpr::createHa(TOCDeltaExpr, false, OutContext);
1527 PPCMCExpr::createLo(TOCDeltaExpr, false, OutContext);
lib/Target/PowerPC/PPCMCInstLower.cpp 140 Expr = PPCMCExpr::createLo(Expr, IsDarwin, Ctx);
143 Expr = PPCMCExpr::createHa(Expr, IsDarwin, Ctx);