1 //===--- TargetInfo.cpp - Information about Target machine ----------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 //  This file implements the TargetInfo and TargetInfoImpl interfaces.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #include "clang/Basic/TargetInfo.h"
15 #include "clang/AST/Type.h"
16 #include "clang/Basic/AddressSpaces.h"
17 #include "clang/Basic/CharInfo.h"
18 #include "clang/Basic/LangOptions.h"
19 #include "llvm/ADT/APFloat.h"
20 #include "llvm/ADT/STLExtras.h"
21 #include "llvm/Support/ErrorHandling.h"
22 #include <cstdlib>
23 using namespace clang;
24 
25 static const LangAS::Map DefaultAddrSpaceMap = { 0 };
26 
27 // TargetInfo Constructor.
28 TargetInfo::TargetInfo(const llvm::Triple &T) : TargetOpts(), Triple(T) {
29   // Set defaults.  Defaults are set for a 32-bit RISC platform, like PPC or
30   // SPARC.  These should be overridden by concrete targets as needed.
31   BigEndian = !T.isLittleEndian();
32   TLSSupported = true;
33   NoAsmVariants = false;
34   HasFloat128 = false;
35   PointerWidth = PointerAlign = 32;
36   BoolWidth = BoolAlign = 8;
37   IntWidth = IntAlign = 32;
38   LongWidth = LongAlign = 32;
39   LongLongWidth = LongLongAlign = 64;
40   SuitableAlign = 64;
41   DefaultAlignForAttributeAligned = 128;
42   MinGlobalAlign = 0;
43   // From the glibc documentation, on GNU systems, malloc guarantees 16-byte
44   // alignment on 64-bit systems and 8-byte alignment on 32-bit systems. See
45   // https://www.gnu.org/software/libc/manual/html_node/Malloc-Examples.html
46   if (T.isGNUEnvironment())
47     NewAlign = Triple.isArch64Bit() ? 128 : Triple.isArch32Bit() ? 64 : 0;
48   else
49     NewAlign = 0; // Infer from basic type alignment.
50   HalfWidth = 16;
51   HalfAlign = 16;
52   FloatWidth = 32;
53   FloatAlign = 32;
54   DoubleWidth = 64;
55   DoubleAlign = 64;
56   LongDoubleWidth = 64;
57   LongDoubleAlign = 64;
58   Float128Align = 128;
59   LargeArrayMinWidth = 0;
60   LargeArrayAlign = 0;
61   MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 0;
62   MaxVectorAlign = 0;
63   MaxTLSAlign = 0;
64   SimdDefaultAlign = 0;
65   SizeType = UnsignedLong;
66   PtrDiffType = SignedLong;
67   IntMaxType = SignedLongLong;
68   IntPtrType = SignedLong;
69   WCharType = SignedInt;
70   WIntType = SignedInt;
71   Char16Type = UnsignedShort;
72   Char32Type = UnsignedInt;
73   Int64Type = SignedLongLong;
74   SigAtomicType = SignedInt;
75   ProcessIDType = SignedInt;
76   UseSignedCharForObjCBool = true;
77   UseBitFieldTypeAlignment = true;
78   UseZeroLengthBitfieldAlignment = false;
79   UseExplicitBitFieldAlignment = true;
80   ZeroLengthBitfieldBoundary = 0;
81   HalfFormat = &llvm::APFloat::IEEEhalf();
82   FloatFormat = &llvm::APFloat::IEEEsingle();
83   DoubleFormat = &llvm::APFloat::IEEEdouble();
84   LongDoubleFormat = &llvm::APFloat::IEEEdouble();
85   Float128Format = &llvm::APFloat::IEEEquad();
86   MCountName = "mcount";
87   RegParmMax = 0;
88   SSERegParmMax = 0;
89   HasAlignMac68kSupport = false;
90   HasBuiltinMSVaList = false;
91   IsRenderScriptTarget = false;
92 
93   // Default to no types using fpret.
94   RealTypeUsesObjCFPRet = 0;
95 
96   // Default to not using fp2ret for __Complex long double
97   ComplexLongDoubleUsesFP2Ret = false;
98 
99   // Set the C++ ABI based on the triple.
100   TheCXXABI.set(Triple.isKnownWindowsMSVCEnvironment()
101                     ? TargetCXXABI::Microsoft
102                     : TargetCXXABI::GenericItanium);
103 
104   // Default to an empty address space map.
105   AddrSpaceMap = &DefaultAddrSpaceMap;
106   UseAddrSpaceMapMangling = false;
107 
108   // Default to an unknown platform name.
109   PlatformName = "unknown";
110   PlatformMinVersion = VersionTuple();
111 }
112 
113 // Out of line virtual dtor for TargetInfo.
114 TargetInfo::~TargetInfo() {}
115 
116 /// getTypeName - Return the user string for the specified integer type enum.
117 /// For example, SignedShort -> "short".
118 const char *TargetInfo::getTypeName(IntType T) {
119   switch (T) {
120   default: llvm_unreachable("not an integer!");
121   case SignedChar:       return "signed char";
122   case UnsignedChar:     return "unsigned char";
123   case SignedShort:      return "short";
124   case UnsignedShort:    return "unsigned short";
125   case SignedInt:        return "int";
126   case UnsignedInt:      return "unsigned int";
127   case SignedLong:       return "long int";
128   case UnsignedLong:     return "long unsigned int";
129   case SignedLongLong:   return "long long int";
130   case UnsignedLongLong: return "long long unsigned int";
131   }
132 }
133 
134 /// getTypeConstantSuffix - Return the constant suffix for the specified
135 /// integer type enum. For example, SignedLong -> "L".
136 const char *TargetInfo::getTypeConstantSuffix(IntType T) const {
137   switch (T) {
138   default: llvm_unreachable("not an integer!");
139   case SignedChar:
140   case SignedShort:
141   case SignedInt:        return "";
142   case SignedLong:       return "L";
143   case SignedLongLong:   return "LL";
144   case UnsignedChar:
145     if (getCharWidth() < getIntWidth())
146       return "";
147     LLVM_FALLTHROUGH;
148   case UnsignedShort:
149     if (getShortWidth() < getIntWidth())
150       return "";
151     LLVM_FALLTHROUGH;
152   case UnsignedInt:      return "U";
153   case UnsignedLong:     return "UL";
154   case UnsignedLongLong: return "ULL";
155   }
156 }
157 
158 /// getTypeFormatModifier - Return the printf format modifier for the
159 /// specified integer type enum. For example, SignedLong -> "l".
160 
161 const char *TargetInfo::getTypeFormatModifier(IntType T) {
162   switch (T) {
163   default: llvm_unreachable("not an integer!");
164   case SignedChar:
165   case UnsignedChar:     return "hh";
166   case SignedShort:
167   case UnsignedShort:    return "h";
168   case SignedInt:
169   case UnsignedInt:      return "";
170   case SignedLong:
171   case UnsignedLong:     return "l";
172   case SignedLongLong:
173   case UnsignedLongLong: return "ll";
174   }
175 }
176 
177 /// getTypeWidth - Return the width (in bits) of the specified integer type
178 /// enum. For example, SignedInt -> getIntWidth().
179 unsigned TargetInfo::getTypeWidth(IntType T) const {
180   switch (T) {
181   default: llvm_unreachable("not an integer!");
182   case SignedChar:
183   case UnsignedChar:     return getCharWidth();
184   case SignedShort:
185   case UnsignedShort:    return getShortWidth();
186   case SignedInt:
187   case UnsignedInt:      return getIntWidth();
188   case SignedLong:
189   case UnsignedLong:     return getLongWidth();
190   case SignedLongLong:
191   case UnsignedLongLong: return getLongLongWidth();
192   };
193 }
194 
195 TargetInfo::IntType TargetInfo::getIntTypeByWidth(
196     unsigned BitWidth, bool IsSigned) const {
197   if (getCharWidth() == BitWidth)
198     return IsSigned ? SignedChar : UnsignedChar;
199   if (getShortWidth() == BitWidth)
200     return IsSigned ? SignedShort : UnsignedShort;
201   if (getIntWidth() == BitWidth)
202     return IsSigned ? SignedInt : UnsignedInt;
203   if (getLongWidth() == BitWidth)
204     return IsSigned ? SignedLong : UnsignedLong;
205   if (getLongLongWidth() == BitWidth)
206     return IsSigned ? SignedLongLong : UnsignedLongLong;
207   return NoInt;
208 }
209 
210 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth,
211                                                        bool IsSigned) const {
212   if (getCharWidth() >= BitWidth)
213     return IsSigned ? SignedChar : UnsignedChar;
214   if (getShortWidth() >= BitWidth)
215     return IsSigned ? SignedShort : UnsignedShort;
216   if (getIntWidth() >= BitWidth)
217     return IsSigned ? SignedInt : UnsignedInt;
218   if (getLongWidth() >= BitWidth)
219     return IsSigned ? SignedLong : UnsignedLong;
220   if (getLongLongWidth() >= BitWidth)
221     return IsSigned ? SignedLongLong : UnsignedLongLong;
222   return NoInt;
223 }
224 
225 TargetInfo::RealType TargetInfo::getRealTypeByWidth(unsigned BitWidth) const {
226   if (getFloatWidth() == BitWidth)
227     return Float;
228   if (getDoubleWidth() == BitWidth)
229     return Double;
230 
231   switch (BitWidth) {
232   case 96:
233     if (&getLongDoubleFormat() == &llvm::APFloat::x87DoubleExtended())
234       return LongDouble;
235     break;
236   case 128:
237     if (&getLongDoubleFormat() == &llvm::APFloat::PPCDoubleDouble() ||
238         &getLongDoubleFormat() == &llvm::APFloat::IEEEquad())
239       return LongDouble;
240     if (hasFloat128Type())
241       return Float128;
242     break;
243   }
244 
245   return NoFloat;
246 }
247 
248 /// getTypeAlign - Return the alignment (in bits) of the specified integer type
249 /// enum. For example, SignedInt -> getIntAlign().
250 unsigned TargetInfo::getTypeAlign(IntType T) const {
251   switch (T) {
252   default: llvm_unreachable("not an integer!");
253   case SignedChar:
254   case UnsignedChar:     return getCharAlign();
255   case SignedShort:
256   case UnsignedShort:    return getShortAlign();
257   case SignedInt:
258   case UnsignedInt:      return getIntAlign();
259   case SignedLong:
260   case UnsignedLong:     return getLongAlign();
261   case SignedLongLong:
262   case UnsignedLongLong: return getLongLongAlign();
263   };
264 }
265 
266 /// isTypeSigned - Return whether an integer types is signed. Returns true if
267 /// the type is signed; false otherwise.
268 bool TargetInfo::isTypeSigned(IntType T) {
269   switch (T) {
270   default: llvm_unreachable("not an integer!");
271   case SignedChar:
272   case SignedShort:
273   case SignedInt:
274   case SignedLong:
275   case SignedLongLong:
276     return true;
277   case UnsignedChar:
278   case UnsignedShort:
279   case UnsignedInt:
280   case UnsignedLong:
281   case UnsignedLongLong:
282     return false;
283   };
284 }
285 
286 /// adjust - Set forced language options.
287 /// Apply changes to the target information with respect to certain
288 /// language options which change the target configuration and adjust
289 /// the language based on the target options where applicable.
290 void TargetInfo::adjust(LangOptions &Opts) {
291   if (Opts.NoBitFieldTypeAlign)
292     UseBitFieldTypeAlignment = false;
293   if (Opts.ShortWChar)
294     WCharType = UnsignedShort;
295   if (Opts.AlignDouble) {
296     DoubleAlign = LongLongAlign = 64;
297     LongDoubleAlign = 64;
298   }
299 
300   if (Opts.OpenCL) {
301     // OpenCL C requires specific widths for types, irrespective of
302     // what these normally are for the target.
303     // We also define long long and long double here, although the
304     // OpenCL standard only mentions these as "reserved".
305     IntWidth = IntAlign = 32;
306     LongWidth = LongAlign = 64;
307     LongLongWidth = LongLongAlign = 128;
308     HalfWidth = HalfAlign = 16;
309     FloatWidth = FloatAlign = 32;
310 
311     // Embedded 32-bit targets (OpenCL EP) might have double C type
312     // defined as float. Let's not override this as it might lead
313     // to generating illegal code that uses 64bit doubles.
314     if (DoubleWidth != FloatWidth) {
315       DoubleWidth = DoubleAlign = 64;
316       DoubleFormat = &llvm::APFloat::IEEEdouble();
317     }
318     LongDoubleWidth = LongDoubleAlign = 128;
319 
320     unsigned MaxPointerWidth = getMaxPointerWidth();
321     assert(MaxPointerWidth == 32 || MaxPointerWidth == 64);
322     bool Is32BitArch = MaxPointerWidth == 32;
323     SizeType = Is32BitArch ? UnsignedInt : UnsignedLong;
324     PtrDiffType = Is32BitArch ? SignedInt : SignedLong;
325     IntPtrType = Is32BitArch ? SignedInt : SignedLong;
326 
327     IntMaxType = SignedLongLong;
328     Int64Type = SignedLong;
329 
330     HalfFormat = &llvm::APFloat::IEEEhalf();
331     FloatFormat = &llvm::APFloat::IEEEsingle();
332     LongDoubleFormat = &llvm::APFloat::IEEEquad();
333   }
334 
335   if (Opts.NewAlignOverride)
336     NewAlign = Opts.NewAlignOverride * getCharWidth();
337 }
338 
339 bool TargetInfo::initFeatureMap(
340     llvm::StringMap<bool> &Features, DiagnosticsEngine &Diags, StringRef CPU,
341     const std::vector<std::string> &FeatureVec) const {
342   for (const auto &F : FeatureVec) {
343     StringRef Name = F;
344     // Apply the feature via the target.
345     bool Enabled = Name[0] == '+';
346     setFeatureEnabled(Features, Name.substr(1), Enabled);
347   }
348   return true;
349 }
350 
351 LangAS::ID TargetInfo::getOpenCLTypeAddrSpace(const Type *T) const {
352   auto BT = dyn_cast<BuiltinType>(T);
353 
354   if (!BT) {
355     if (isa<PipeType>(T))
356       return LangAS::opencl_global;
357 
358     return LangAS::Default;
359   }
360 
361   switch (BT->getKind()) {
362 #define IMAGE_TYPE(ImgType, Id, SingletonId, Access, Suffix)                   \
363   case BuiltinType::Id:                                                        \
364     return LangAS::opencl_global;
365 #include "clang/Basic/OpenCLImageTypes.def"
366 
367   case BuiltinType::OCLSampler:
368     return LangAS::opencl_constant;
369 
370   default:
371     return LangAS::Default;
372   }
373 }
374 
375 //===----------------------------------------------------------------------===//
376 
377 
378 static StringRef removeGCCRegisterPrefix(StringRef Name) {
379   if (Name[0] == '%' || Name[0] == '#')
380     Name = Name.substr(1);
381 
382   return Name;
383 }
384 
385 /// isValidClobber - Returns whether the passed in string is
386 /// a valid clobber in an inline asm statement. This is used by
387 /// Sema.
388 bool TargetInfo::isValidClobber(StringRef Name) const {
389   return (isValidGCCRegisterName(Name) ||
390           Name == "memory" || Name == "cc");
391 }
392 
393 /// isValidGCCRegisterName - Returns whether the passed in string
394 /// is a valid register name according to GCC. This is used by Sema for
395 /// inline asm statements.
396 bool TargetInfo::isValidGCCRegisterName(StringRef Name) const {
397   if (Name.empty())
398     return false;
399 
400   // Get rid of any register prefix.
401   Name = removeGCCRegisterPrefix(Name);
402   if (Name.empty())
403     return false;
404 
405   ArrayRef<const char *> Names = getGCCRegNames();
406 
407   // If we have a number it maps to an entry in the register name array.
408   if (isDigit(Name[0])) {
409     unsigned n;
410     if (!Name.getAsInteger(0, n))
411       return n < Names.size();
412   }
413 
414   // Check register names.
415   if (std::find(Names.begin(), Names.end(), Name) != Names.end())
416     return true;
417 
418   // Check any additional names that we have.
419   for (const AddlRegName &ARN : getGCCAddlRegNames())
420     for (const char *AN : ARN.Names) {
421       if (!AN)
422         break;
423       // Make sure the register that the additional name is for is within
424       // the bounds of the register names from above.
425       if (AN == Name && ARN.RegNum < Names.size())
426         return true;
427     }
428 
429   // Now check aliases.
430   for (const GCCRegAlias &GRA : getGCCRegAliases())
431     for (const char *A : GRA.Aliases) {
432       if (!A)
433         break;
434       if (A == Name)
435         return true;
436     }
437 
438   return false;
439 }
440 
441 StringRef TargetInfo::getNormalizedGCCRegisterName(StringRef Name,
442                                                    bool ReturnCanonical) const {
443   assert(isValidGCCRegisterName(Name) && "Invalid register passed in");
444 
445   // Get rid of any register prefix.
446   Name = removeGCCRegisterPrefix(Name);
447 
448   ArrayRef<const char *> Names = getGCCRegNames();
449 
450   // First, check if we have a number.
451   if (isDigit(Name[0])) {
452     unsigned n;
453     if (!Name.getAsInteger(0, n)) {
454       assert(n < Names.size() && "Out of bounds register number!");
455       return Names[n];
456     }
457   }
458 
459   // Check any additional names that we have.
460   for (const AddlRegName &ARN : getGCCAddlRegNames())
461     for (const char *AN : ARN.Names) {
462       if (!AN)
463         break;
464       // Make sure the register that the additional name is for is within
465       // the bounds of the register names from above.
466       if (AN == Name && ARN.RegNum < Names.size())
467         return ReturnCanonical ? Names[ARN.RegNum] : Name;
468     }
469 
470   // Now check aliases.
471   for (const GCCRegAlias &RA : getGCCRegAliases())
472     for (const char *A : RA.Aliases) {
473       if (!A)
474         break;
475       if (A == Name)
476         return RA.Register;
477     }
478 
479   return Name;
480 }
481 
482 bool TargetInfo::validateOutputConstraint(ConstraintInfo &Info) const {
483   const char *Name = Info.getConstraintStr().c_str();
484   // An output constraint must start with '=' or '+'
485   if (*Name != '=' && *Name != '+')
486     return false;
487 
488   if (*Name == '+')
489     Info.setIsReadWrite();
490 
491   Name++;
492   while (*Name) {
493     switch (*Name) {
494     default:
495       if (!validateAsmConstraint(Name, Info)) {
496         // FIXME: We temporarily return false
497         // so we can add more constraints as we hit it.
498         // Eventually, an unknown constraint should just be treated as 'g'.
499         return false;
500       }
501       break;
502     case '&': // early clobber.
503       Info.setEarlyClobber();
504       break;
505     case '%': // commutative.
506       // FIXME: Check that there is a another register after this one.
507       break;
508     case 'r': // general register.
509       Info.setAllowsRegister();
510       break;
511     case 'm': // memory operand.
512     case 'o': // offsetable memory operand.
513     case 'V': // non-offsetable memory operand.
514     case '<': // autodecrement memory operand.
515     case '>': // autoincrement memory operand.
516       Info.setAllowsMemory();
517       break;
518     case 'g': // general register, memory operand or immediate integer.
519     case 'X': // any operand.
520       Info.setAllowsRegister();
521       Info.setAllowsMemory();
522       break;
523     case ',': // multiple alternative constraint.  Pass it.
524       // Handle additional optional '=' or '+' modifiers.
525       if (Name[1] == '=' || Name[1] == '+')
526         Name++;
527       break;
528     case '#': // Ignore as constraint.
529       while (Name[1] && Name[1] != ',')
530         Name++;
531       break;
532     case '?': // Disparage slightly code.
533     case '!': // Disparage severely.
534     case '*': // Ignore for choosing register preferences.
535     case 'i': // Ignore i,n,E,F as output constraints (match from the other
536               // chars)
537     case 'n':
538     case 'E':
539     case 'F':
540       break;  // Pass them.
541     }
542 
543     Name++;
544   }
545 
546   // Early clobber with a read-write constraint which doesn't permit registers
547   // is invalid.
548   if (Info.earlyClobber() && Info.isReadWrite() && !Info.allowsRegister())
549     return false;
550 
551   // If a constraint allows neither memory nor register operands it contains
552   // only modifiers. Reject it.
553   return Info.allowsMemory() || Info.allowsRegister();
554 }
555 
556 bool TargetInfo::resolveSymbolicName(const char *&Name,
557                                      ArrayRef<ConstraintInfo> OutputConstraints,
558                                      unsigned &Index) const {
559   assert(*Name == '[' && "Symbolic name did not start with '['");
560   Name++;
561   const char *Start = Name;
562   while (*Name && *Name != ']')
563     Name++;
564 
565   if (!*Name) {
566     // Missing ']'
567     return false;
568   }
569 
570   std::string SymbolicName(Start, Name - Start);
571 
572   for (Index = 0; Index != OutputConstraints.size(); ++Index)
573     if (SymbolicName == OutputConstraints[Index].getName())
574       return true;
575 
576   return false;
577 }
578 
579 bool TargetInfo::validateInputConstraint(
580                               MutableArrayRef<ConstraintInfo> OutputConstraints,
581                               ConstraintInfo &Info) const {
582   const char *Name = Info.ConstraintStr.c_str();
583 
584   if (!*Name)
585     return false;
586 
587   while (*Name) {
588     switch (*Name) {
589     default:
590       // Check if we have a matching constraint
591       if (*Name >= '0' && *Name <= '9') {
592         const char *DigitStart = Name;
593         while (Name[1] >= '0' && Name[1] <= '9')
594           Name++;
595         const char *DigitEnd = Name;
596         unsigned i;
597         if (StringRef(DigitStart, DigitEnd - DigitStart + 1)
598                 .getAsInteger(10, i))
599           return false;
600 
601         // Check if matching constraint is out of bounds.
602         if (i >= OutputConstraints.size()) return false;
603 
604         // A number must refer to an output only operand.
605         if (OutputConstraints[i].isReadWrite())
606           return false;
607 
608         // If the constraint is already tied, it must be tied to the
609         // same operand referenced to by the number.
610         if (Info.hasTiedOperand() && Info.getTiedOperand() != i)
611           return false;
612 
613         // The constraint should have the same info as the respective
614         // output constraint.
615         Info.setTiedOperand(i, OutputConstraints[i]);
616       } else if (!validateAsmConstraint(Name, Info)) {
617         // FIXME: This error return is in place temporarily so we can
618         // add more constraints as we hit it.  Eventually, an unknown
619         // constraint should just be treated as 'g'.
620         return false;
621       }
622       break;
623     case '[': {
624       unsigned Index = 0;
625       if (!resolveSymbolicName(Name, OutputConstraints, Index))
626         return false;
627 
628       // If the constraint is already tied, it must be tied to the
629       // same operand referenced to by the number.
630       if (Info.hasTiedOperand() && Info.getTiedOperand() != Index)
631         return false;
632 
633       // A number must refer to an output only operand.
634       if (OutputConstraints[Index].isReadWrite())
635         return false;
636 
637       Info.setTiedOperand(Index, OutputConstraints[Index]);
638       break;
639     }
640     case '%': // commutative
641       // FIXME: Fail if % is used with the last operand.
642       break;
643     case 'i': // immediate integer.
644     case 'n': // immediate integer with a known value.
645       break;
646     case 'I':  // Various constant constraints with target-specific meanings.
647     case 'J':
648     case 'K':
649     case 'L':
650     case 'M':
651     case 'N':
652     case 'O':
653     case 'P':
654       if (!validateAsmConstraint(Name, Info))
655         return false;
656       break;
657     case 'r': // general register.
658       Info.setAllowsRegister();
659       break;
660     case 'm': // memory operand.
661     case 'o': // offsettable memory operand.
662     case 'V': // non-offsettable memory operand.
663     case '<': // autodecrement memory operand.
664     case '>': // autoincrement memory operand.
665       Info.setAllowsMemory();
666       break;
667     case 'g': // general register, memory operand or immediate integer.
668     case 'X': // any operand.
669       Info.setAllowsRegister();
670       Info.setAllowsMemory();
671       break;
672     case 'E': // immediate floating point.
673     case 'F': // immediate floating point.
674     case 'p': // address operand.
675       break;
676     case ',': // multiple alternative constraint.  Ignore comma.
677       break;
678     case '#': // Ignore as constraint.
679       while (Name[1] && Name[1] != ',')
680         Name++;
681       break;
682     case '?': // Disparage slightly code.
683     case '!': // Disparage severely.
684     case '*': // Ignore for choosing register preferences.
685       break;  // Pass them.
686     }
687 
688     Name++;
689   }
690 
691   return true;
692 }
693