Lines Matching refs:LanaiMCExpr

221     if (const LanaiMCExpr *SymbolRefExpr = dyn_cast<LanaiMCExpr>(Imm.Value))  in isHiImm16()
222 return SymbolRefExpr->getKind() == LanaiMCExpr::VK_Lanai_ABS_HI; in isHiImm16()
226 if (const LanaiMCExpr *SymbolRefExpr = in isHiImm16()
227 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isHiImm16()
228 return SymbolRefExpr->getKind() == LanaiMCExpr::VK_Lanai_ABS_HI; in isHiImm16()
258 if (const LanaiMCExpr *SymbolRefExpr = dyn_cast<LanaiMCExpr>(Imm.Value)) in isLoImm16()
259 return SymbolRefExpr->getKind() == LanaiMCExpr::VK_Lanai_ABS_LO; in isLoImm16()
263 if (const LanaiMCExpr *SymbolRefExpr = in isLoImm16()
264 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isLoImm16()
265 return SymbolRefExpr->getKind() == LanaiMCExpr::VK_Lanai_ABS_LO; in isLoImm16()
282 if (const LanaiMCExpr *SymbolRefExpr = dyn_cast<LanaiMCExpr>(Imm.Value)) in isLoImm16Signed()
283 return SymbolRefExpr->getKind() == LanaiMCExpr::VK_Lanai_ABS_LO; in isLoImm16Signed()
287 if (const LanaiMCExpr *SymbolRefExpr = in isLoImm16Signed()
288 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isLoImm16Signed()
289 return SymbolRefExpr->getKind() == LanaiMCExpr::VK_Lanai_ABS_LO; in isLoImm16Signed()
329 if (const LanaiMCExpr *SymbolRefExpr = dyn_cast<LanaiMCExpr>(Imm.Value)) in isLoImm21()
330 return SymbolRefExpr->getKind() == LanaiMCExpr::VK_Lanai_None; in isLoImm21()
338 if (const LanaiMCExpr *SymbolRefExpr = in isLoImm21()
339 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isLoImm21()
340 return SymbolRefExpr->getKind() == LanaiMCExpr::VK_Lanai_None; in isLoImm21()
454 else if (isa<LanaiMCExpr>(getImm())) { in addLoImm16Operands()
456 const LanaiMCExpr *SymbolRefExpr = dyn_cast<LanaiMCExpr>(getImm()); in addLoImm16Operands()
457 assert(SymbolRefExpr->getKind() == LanaiMCExpr::VK_Lanai_ABS_LO); in addLoImm16Operands()
463 assert(dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS()) && in addLoImm16Operands()
464 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())->getKind() == in addLoImm16Operands()
465 LanaiMCExpr::VK_Lanai_ABS_LO); in addLoImm16Operands()
484 else if (isa<LanaiMCExpr>(getImm())) { in addHiImm16Operands()
486 const LanaiMCExpr *SymbolRefExpr = dyn_cast<LanaiMCExpr>(getImm()); in addHiImm16Operands()
487 assert(SymbolRefExpr->getKind() == LanaiMCExpr::VK_Lanai_ABS_HI); in addHiImm16Operands()
493 assert(dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS()) && in addHiImm16Operands()
494 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())->getKind() == in addHiImm16Operands()
495 LanaiMCExpr::VK_Lanai_ABS_HI); in addHiImm16Operands()
514 else if (isa<LanaiMCExpr>(getImm())) { in addLoImm21Operands()
516 const LanaiMCExpr *SymbolRefExpr = dyn_cast<LanaiMCExpr>(getImm()); in addLoImm21Operands()
518 SymbolRefExpr->getKind() == LanaiMCExpr::VK_Lanai_None); in addLoImm21Operands()
532 const LanaiMCExpr *SymbolRefExpr = in addLoImm21Operands()
533 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS()); in addLoImm21Operands()
535 SymbolRefExpr->getKind() == LanaiMCExpr::VK_Lanai_None); in addLoImm21Operands()
701 LanaiMCExpr::VariantKind Kind = LanaiMCExpr::VK_Lanai_None; in parseIdentifier()
712 Kind = LanaiMCExpr::VK_Lanai_ABS_HI; in parseIdentifier()
714 Kind = LanaiMCExpr::VK_Lanai_ABS_LO; in parseIdentifier()
718 if (Kind != LanaiMCExpr::VK_Lanai_None) { in parseIdentifier()
735 if (Kind != LanaiMCExpr::VK_Lanai_None) { in parseIdentifier()
746 Res = LanaiMCExpr::create(Kind, Expr, getContext()); in parseIdentifier()
828 if (const LanaiMCExpr *SymbolRefExpr = dyn_cast<LanaiMCExpr>(Op.getImm())) in shouldBeSls()
829 return SymbolRefExpr->getKind() == LanaiMCExpr::VK_Lanai_None; in shouldBeSls()
834 const LanaiMCExpr *LHSSymbolRefExpr = in shouldBeSls()
835 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS()); in shouldBeSls()
837 LHSSymbolRefExpr->getKind() == LanaiMCExpr::VK_Lanai_None); in shouldBeSls()