Lines Matching defs:Kind

44 // Return the relocation type for an absolute value of MCFixupKind Kind.
45 static unsigned getAbsoluteReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) {
46 switch (Kind) {
70 // Return the relocation type for a PC-relative value of MCFixupKind Kind.
71 static unsigned getPCRelReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) {
72 switch (Kind) {
96 // Return the R_390_TLS_LE* relocation type for MCFixupKind Kind.
97 static unsigned getTLSLEReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) {
98 switch (Kind) {
106 // Return the R_390_TLS_LDO* relocation type for MCFixupKind Kind.
107 static unsigned getTLSLDOReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) {
108 switch (Kind) {
116 // Return the R_390_TLS_LDM* relocation type for MCFixupKind Kind.
117 static unsigned getTLSLDMReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) {
118 switch (Kind) {
127 // Return the R_390_TLS_GD* relocation type for MCFixupKind Kind.
128 static unsigned getTLSGDReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) {
129 switch (Kind) {
138 // Return the PLT relocation counterpart of MCFixupKind Kind.
139 static unsigned getPLTReloc(MCContext &Ctx, SMLoc Loc, unsigned Kind) {
140 switch (Kind) {
155 unsigned Kind = Fixup.getKind();
156 if (Kind >= FirstLiteralRelocationKind)
157 return Kind - FirstLiteralRelocationKind;
162 return getPCRelReloc(Ctx, Loc, Kind);
163 return getAbsoluteReloc(Ctx, Loc, Kind);
167 return getTLSLEReloc(Ctx, Loc, Kind);
170 if (IsPCRel && Kind == SystemZ::FK_390_PC32DBL)
177 return getTLSLDOReloc(Ctx, Loc, Kind);
181 return getTLSLDMReloc(Ctx, Loc, Kind);
185 return getTLSGDReloc(Ctx, Loc, Kind);
189 if (IsPCRel && Kind == SystemZ::FK_390_PC32DBL)
196 return getPLTReloc(Ctx, Loc, Kind);