LLVM 20.0.0git
Enumerations | Functions
llvm::LoongArchII Namespace Reference

Enumerations

enum  {
  MO_None , MO_CALL , MO_CALL_PLT , MO_PCREL_HI ,
  MO_PCREL_LO , MO_PCREL64_LO , MO_PCREL64_HI , MO_GOT_PC_HI ,
  MO_GOT_PC_LO , MO_GOT_PC64_LO , MO_GOT_PC64_HI , MO_LE_HI ,
  MO_LE_LO , MO_LE64_LO , MO_LE64_HI , MO_IE_PC_HI ,
  MO_IE_PC_LO , MO_IE_PC64_LO , MO_IE_PC64_HI , MO_LD_PC_HI ,
  MO_GD_PC_HI , MO_CALL36 , MO_DESC_PC_HI , MO_DESC_PC_LO ,
  MO_DESC64_PC_HI , MO_DESC64_PC_LO , MO_DESC_LD , MO_DESC_CALL
}
 
enum  { IsSubjectToAMORdConstraintShift = 0 , IsSubjectToAMORdConstraintMask = 1 << IsSubjectToAMORdConstraintShift , IsAMCASShift = IsSubjectToAMORdConstraintShift + 1 , IsAMCASMask = 1 << IsAMCASShift }
 

Functions

static bool isSubjectToAMORdConstraint (uint64_t TSFlags)
 
static bool isAMCAS (uint64_t TSFlags)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MO_None 
MO_CALL 
MO_CALL_PLT 
MO_PCREL_HI 
MO_PCREL_LO 
MO_PCREL64_LO 
MO_PCREL64_HI 
MO_GOT_PC_HI 
MO_GOT_PC_LO 
MO_GOT_PC64_LO 
MO_GOT_PC64_HI 
MO_LE_HI 
MO_LE_LO 
MO_LE64_LO 
MO_LE64_HI 
MO_IE_PC_HI 
MO_IE_PC_LO 
MO_IE_PC64_LO 
MO_IE_PC64_HI 
MO_LD_PC_HI 
MO_GD_PC_HI 
MO_CALL36 
MO_DESC_PC_HI 
MO_DESC_PC_LO 
MO_DESC64_PC_HI 
MO_DESC64_PC_LO 
MO_DESC_LD 
MO_DESC_CALL 

Definition at line 28 of file LoongArchBaseInfo.h.

◆ anonymous enum

anonymous enum
Enumerator
IsSubjectToAMORdConstraintShift 
IsSubjectToAMORdConstraintMask 
IsAMCASShift 
IsAMCASMask 

Definition at line 62 of file LoongArchBaseInfo.h.

Function Documentation

◆ isAMCAS()

static bool llvm::LoongArchII::isAMCAS ( uint64_t  TSFlags)
inlinestatic
Returns
true if this instruction belongs to the AMCAS family.

Definition at line 88 of file LoongArchBaseInfo.h.

References IsAMCASMask.

◆ isSubjectToAMORdConstraint()

static bool llvm::LoongArchII::isSubjectToAMORdConstraint ( uint64_t  TSFlags)
inlinestatic
Returns
true if this instruction's rd is normally required to differ from rj and rk, in the way 3-register atomic memory operations behave.

Definition at line 83 of file LoongArchBaseInfo.h.

References IsSubjectToAMORdConstraintMask.