Lines Matching refs:SparcMCExpr
15 #include "MCTargetDesc/SparcMCExpr.h"
73 static MCOperand createSparcMCOperand(SparcMCExpr::VariantKind Kind,
77 const SparcMCExpr *expr = SparcMCExpr::create(Kind, MCSym, OutContext);
83 return createSparcMCOperand(SparcMCExpr::VK_Sparc_None, Label, OutContext);
86 static MCOperand createPCXRelExprOp(SparcMCExpr::VariantKind Kind,
99 const SparcMCExpr *expr = SparcMCExpr::create(Kind,
157 SparcMCExpr::VariantKind HiKind,
158 SparcMCExpr::VariantKind LoKind,
189 SparcMCExpr::VK_Sparc_HI, SparcMCExpr::VK_Sparc_LO,
194 SparcMCExpr::VK_Sparc_H44, SparcMCExpr::VK_Sparc_M44,
199 MCOperand lo = createSparcMCOperand(SparcMCExpr::VK_Sparc_L44,
206 SparcMCExpr::VK_Sparc_HH, SparcMCExpr::VK_Sparc_HM,
214 SparcMCExpr::VK_Sparc_HI, SparcMCExpr::VK_Sparc_LO,
240 MCOperand hiImm = createPCXRelExprOp(SparcMCExpr::VK_Sparc_PC22,
245 MCOperand loImm = createPCXRelExprOp(SparcMCExpr::VK_Sparc_PC10,
294 SparcMCExpr::VariantKind TF = (SparcMCExpr::VariantKind) MO.getTargetFlags();
300 assert(TF == SparcMCExpr::VK_Sparc_None &&
303 assert((TF == SparcMCExpr::VK_Sparc_HI
304 || TF == SparcMCExpr::VK_Sparc_H44
305 || TF == SparcMCExpr::VK_Sparc_HH
306 || TF == SparcMCExpr::VK_Sparc_TLS_GD_HI22
307 || TF == SparcMCExpr::VK_Sparc_TLS_LDM_HI22
308 || TF == SparcMCExpr::VK_Sparc_TLS_LDO_HIX22
309 || TF == SparcMCExpr::VK_Sparc_TLS_IE_HI22
310 || TF == SparcMCExpr::VK_Sparc_TLS_LE_HIX22) &&
313 assert((TF == SparcMCExpr::VK_Sparc_None
314 || TF == SparcMCExpr::VK_Sparc_TLS_GD_CALL
315 || TF == SparcMCExpr::VK_Sparc_TLS_LDM_CALL) &&
318 assert((TF == SparcMCExpr::VK_Sparc_TLS_GD_ADD
319 || TF == SparcMCExpr::VK_Sparc_TLS_LDM_ADD
320 || TF == SparcMCExpr::VK_Sparc_TLS_LDO_ADD
321 || TF == SparcMCExpr::VK_Sparc_TLS_IE_ADD) &&
324 assert(TF == SparcMCExpr::VK_Sparc_TLS_IE_LD &&
327 assert(TF == SparcMCExpr::VK_Sparc_TLS_IE_LDX &&
330 assert((TF == SparcMCExpr::VK_Sparc_TLS_LDO_LOX10
331 || TF == SparcMCExpr::VK_Sparc_TLS_LE_LOX10) &&
334 assert((TF == SparcMCExpr::VK_Sparc_LO
335 || TF == SparcMCExpr::VK_Sparc_M44
336 || TF == SparcMCExpr::VK_Sparc_L44
337 || TF == SparcMCExpr::VK_Sparc_HM
338 || TF == SparcMCExpr::VK_Sparc_TLS_GD_LO10
339 || TF == SparcMCExpr::VK_Sparc_TLS_LDM_LO10
340 || TF == SparcMCExpr::VK_Sparc_TLS_IE_LO10 ) &&
346 bool CloseParen = SparcMCExpr::printVariantKind(O, TF);