@@ -100,7 +100,7 @@ class SubRegIndex<int size, int offset = 0> {
100
100
101
101
// The size/offset information, parameterized by a HW mode.
102
102
// If the HwModes provided for SubRegRanges does not include the DefaultMode,
103
- // the/ Size and Offset fields below will be used for the default. Otherwise,
103
+ // the Size and Offset fields below will be used for the default. Otherwise,
104
104
// the Size and Offset fields are ignored.
105
105
SubRegRangeByHwMode SubRegRanges;
106
106
@@ -159,13 +159,13 @@ class RegAltNameIndex {
159
159
def NoRegAltName : RegAltNameIndex;
160
160
161
161
// Register - You should define one instance of this class for each register
162
- // in the target machine. String n will become the "name" of the register.
162
+ // in the target machine. String n will become the "name" of the register.
163
163
class Register<string n, list<string> altNames = []> {
164
164
string Namespace = "";
165
165
string AsmName = n;
166
166
list<string> AltNames = altNames;
167
167
168
- // Aliases - A list of registers that this register overlaps with. A read or
168
+ // Aliases - A list of registers that this register overlaps with. A read or
169
169
// modification of this register can potentially read or modify the aliased
170
170
// registers.
171
171
list<Register> Aliases = [];
@@ -187,8 +187,8 @@ class Register<string n, list<string> altNames = []> {
187
187
188
188
// DwarfNumbers - Numbers used internally by gcc/gdb to identify the register.
189
189
// These values can be determined by locating the <target>.h file in the
190
- // directory llvmgcc/gcc/config/<target>/ and looking for REGISTER_NAMES. The
191
- // order of these names correspond to the enumeration used by gcc. A value of
190
+ // directory llvmgcc/gcc/config/<target>/ and looking for REGISTER_NAMES. The
191
+ // order of these names correspond to the enumeration used by gcc. A value of
192
192
// -1 indicates that the gcc number is undefined and -2 that register number
193
193
// is invalid for this mode/flavour.
194
194
list<int> DwarfNumbers = [];
@@ -209,7 +209,7 @@ class Register<string n, list<string> altNames = []> {
209
209
list<int> CostPerUse = [0];
210
210
211
211
// CoveredBySubRegs - When this bit is set, the value of this register is
212
- // completely determined by the value of its sub-registers. For example, the
212
+ // completely determined by the value of its sub-registers. For example, the
213
213
// x86 register AX is covered by its sub-registers AL and AH, but EAX is not
214
214
// covered by its sub-register AX.
215
215
bit CoveredBySubRegs = false;
@@ -239,7 +239,7 @@ class RegisterWithSubRegs<string n, list<Register> subregs> : Register<n> {
239
239
}
240
240
241
241
// DAGOperand - An empty base class that unifies RegisterClass's and other forms
242
- // of Operand's that are legal as type qualifiers in DAG patterns. This should
242
+ // of Operand's that are legal as type qualifiers in DAG patterns. This should
243
243
// only ever be used for defining multiclasses that are polymorphic over both
244
244
// RegisterClass's and other Operand's.
245
245
class DAGOperand {
@@ -249,7 +249,7 @@ class DAGOperand {
249
249
250
250
// RegisterClass - Now that all of the registers are defined, and aliases
251
251
// between registers are defined, specify which registers belong to which
252
- // register classes. This also defines the default allocation order of
252
+ // register classes. This also defines the default allocation order of
253
253
// registers by register allocators.
254
254
//
255
255
class RegisterClass<string namespace, list<ValueType> regTypes, int alignment,
@@ -261,14 +261,14 @@ class RegisterClass<string namespace, list<ValueType> regTypes, int alignment,
261
261
RegInfoByHwMode RegInfos;
262
262
263
263
// RegType - Specify the list ValueType of the registers in this register
264
- // class. Note that all registers in a register class must have the same
265
- // ValueTypes. This is a list because some targets permit storing different
264
+ // class. Note that all registers in a register class must have the same
265
+ // ValueTypes. This is a list because some targets permit storing different
266
266
// types in same register, for example vector values with 128-bit total size,
267
267
// but different count/size of items, like SSE on x86.
268
268
//
269
269
list<ValueType> RegTypes = regTypes;
270
270
271
- // Size - Specify the spill size in bits of the registers. A default value of
271
+ // Size - Specify the spill size in bits of the registers. A default value of
272
272
// zero lets tablegen pick an appropriate size.
273
273
int Size = 0;
274
274
@@ -283,7 +283,7 @@ class RegisterClass<string namespace, list<ValueType> regTypes, int alignment,
283
283
// value means copying is extremely expensive or impossible.
284
284
int CopyCost = 1;
285
285
286
- // MemberList - Specify which registers are in this class. If the
286
+ // MemberList - Specify which registers are in this class. If the
287
287
// allocation_order_* method are not specified, this also defines the order of
288
288
// allocation used by the register allocator.
289
289
//
@@ -295,7 +295,7 @@ class RegisterClass<string namespace, list<ValueType> regTypes, int alignment,
295
295
RegAltNameIndex altNameIndex = idx;
296
296
297
297
// isAllocatable - Specify that the register class can be used for virtual
298
- // registers and register allocation. Some register classes are only used to
298
+ // registers and register allocation. Some register classes are only used to
299
299
// model instruction operand constraints, and should have isAllocatable = 0.
300
300
bit isAllocatable = true;
301
301
@@ -356,9 +356,9 @@ class RegisterClass<string namespace, list<ValueType> regTypes, int alignment,
356
356
bits<8> TSFlags = 0;
357
357
358
358
// If set then consider this register class to be the base class for registers in
359
- // its MemberList. The base class for registers present in multiple base register
359
+ // its MemberList. The base class for registers present in multiple base register
360
360
// classes will be resolved in the order defined by this value, with lower values
361
- // taking precedence over higher ones. Ties are resolved by enumeration order.
361
+ // taking precedence over higher ones. Ties are resolved by enumeration order.
362
362
int BaseClassOrder = ?;
363
363
}
364
364
@@ -377,7 +377,7 @@ class RegisterClass<string namespace, list<ValueType> regTypes, int alignment,
377
377
// also in the second set.
378
378
//
379
379
// (sequence "R%u", 0, 15) -> [R0, R1, ..., R15]. Generate a sequence of
380
- // numbered registers. Takes an optional 4th operand which is a stride to use
380
+ // numbered registers. Takes an optional 4th operand which is a stride to use
381
381
// when generating the sequence.
382
382
//
383
383
// (shl GPR, 4) - Remove the first N elements.
@@ -455,14 +455,14 @@ class RegisterCategory<list<RegisterClass> classes> {
455
455
456
456
//===----------------------------------------------------------------------===//
457
457
// DwarfRegNum - This class provides a mapping of the llvm register enumeration
458
- // to the register numbering used by gcc and gdb. These values are used by a
458
+ // to the register numbering used by gcc and gdb. These values are used by a
459
459
// debug information writer to describe where values may be located during
460
460
// execution.
461
461
class DwarfRegNum<list<int> Numbers> {
462
462
// DwarfNumbers - Numbers used internally by gcc/gdb to identify the register.
463
463
// These values can be determined by locating the <target>.h file in the
464
- // directory llvmgcc/gcc/config/<target>/ and looking for REGISTER_NAMES. The
465
- // order of these names correspond to the enumeration used by gcc. A value of
464
+ // directory llvmgcc/gcc/config/<target>/ and looking for REGISTER_NAMES. The
465
+ // order of these names correspond to the enumeration used by gcc. A value of
466
466
// -1 indicates that the gcc number is undefined and -2 that register number
467
467
// is invalid for this mode/flavour.
468
468
list<int> DwarfNumbers = Numbers;
@@ -481,7 +481,7 @@ class DwarfRegAlias<Register reg> {
481
481
//
482
482
class SubtargetFeature<string n, string f, string v, string d,
483
483
list<SubtargetFeature> i = []> {
484
- // Name - Feature name. Used by command line (-mattr=) to determine the
484
+ // Name - Feature name. Used by command line (-mattr=) to determine the
485
485
// appropriate target chip.
486
486
//
487
487
string Name = n;
@@ -500,7 +500,7 @@ class SubtargetFeature<string n, string f, string v, string d,
500
500
//
501
501
string Value = v;
502
502
503
- // Desc - Feature description. Used by command line (-mattr=) to display help
503
+ // Desc - Feature description. Used by command line (-mattr=) to display help
504
504
// information.
505
505
//
506
506
string Desc = d;
@@ -818,7 +818,7 @@ class Predicate<string cond> {
818
818
string CondString = cond;
819
819
820
820
/// AssemblerMatcherPredicate - If this feature can be used by the assembler
821
- /// matcher, this is true. Targets should set this by inheriting their
821
+ /// matcher, this is true. Targets should set this by inheriting their
822
822
/// feature from the AssemblerPredicate class in addition to Predicate.
823
823
bit AssemblerMatcherPredicate = false;
824
824
@@ -906,7 +906,7 @@ def encoder;
906
906
def decoder;
907
907
908
908
/// PointerLikeRegClass - Values that are designed to have pointer width are
909
- /// derived from this. TableGen treats the register class as having a symbolic
909
+ /// derived from this. TableGen treats the register class as having a symbolic
910
910
/// type that it doesn't know, and resolves the actual regclass to use by using
911
911
/// the TargetRegisterInfo::getPointerRegClass() hook at codegen time.
912
912
class PointerLikeRegClass<int Kind> {
@@ -992,7 +992,7 @@ def ImmAsmOperand : AsmOperandClass {
992
992
}
993
993
994
994
/// Operand Types - These provide the built-in operand types that may be used
995
- /// by a target. Targets can optionally provide their own operand types as
995
+ /// by a target. Targets can optionally provide their own operand types as
996
996
/// needed, though this should not be needed for RISC targets.
997
997
class Operand<ValueType ty> : DAGOperand {
998
998
ValueType Type = ty;
@@ -1107,7 +1107,7 @@ class PredicateOp;
1107
1107
1108
1108
/// OperandWithDefaultOps - This Operand class can be used as the parent class
1109
1109
/// for an Operand that needs to be initialized with a default value if
1110
- /// no value is supplied in a pattern. This class can be used to simplify the
1110
+ /// no value is supplied in a pattern. This class can be used to simplify the
1111
1111
/// pattern definitions for instructions that have target specific flags
1112
1112
/// encoded as immediate operands.
1113
1113
class OperandWithDefaultOps<ValueType ty, dag defaultops>
@@ -1116,7 +1116,7 @@ class OperandWithDefaultOps<ValueType ty, dag defaultops>
1116
1116
}
1117
1117
1118
1118
/// PredicateOperand - This can be used to define a predicate operand for an
1119
- /// instruction. OpTypes specifies the MIOperandInfo for the operand, and
1119
+ /// instruction. OpTypes specifies the MIOperandInfo for the operand, and
1120
1120
/// AlwaysVal specifies the value of this predicate when set to "always
1121
1121
/// execute".
1122
1122
class PredicateOperand<ValueType ty, dag OpTypes, dag AlwaysVal>
@@ -1559,7 +1559,7 @@ include "llvm/Target/GenericOpcodes.td"
1559
1559
//
1560
1560
class AsmParser {
1561
1561
// AsmParserClassName - This specifies the suffix to use for the asmparser
1562
- // class. Generated AsmParser classes are always prefixed with the target
1562
+ // class. Generated AsmParser classes are always prefixed with the target
1563
1563
// name.
1564
1564
string AsmParserClassName = "AsmParser";
1565
1565
@@ -1632,7 +1632,7 @@ def DefaultAsmParser : AsmParser;
1632
1632
// implemented by targets to describe such variants.
1633
1633
//
1634
1634
class AsmParserVariant {
1635
- // Variant - AsmParsers can be of multiple different variants. Variants are
1635
+ // Variant - AsmParsers can be of multiple different variants. Variants are
1636
1636
// used to support targets that need to parse multiple formats for the
1637
1637
// assembly language.
1638
1638
int Variant = 0;
@@ -1690,8 +1690,8 @@ class TokenAlias<string From, string To> {
1690
1690
}
1691
1691
1692
1692
/// MnemonicAlias - This class allows targets to define assembler mnemonic
1693
- /// aliases. This should be used when all forms of one mnemonic are accepted
1694
- /// with a different mnemonic. For example, X86 allows:
1693
+ /// aliases. This should be used when all forms of one mnemonic are accepted
1694
+ /// with a different mnemonic. For example, X86 allows:
1695
1695
/// sal %al, 1 -> shl %al, 1
1696
1696
/// sal %ax, %cl -> shl %ax, %cl
1697
1697
/// sal %eax, %cl -> shl %eax, %cl
@@ -1769,11 +1769,11 @@ class AsmWriter {
1769
1769
// FIXME: Remove after all ports are updated.
1770
1770
int PassSubtarget = 0;
1771
1771
1772
- // Variant - AsmWriters can be of multiple different variants. Variants are
1772
+ // Variant - AsmWriters can be of multiple different variants. Variants are
1773
1773
// used to support targets that need to emit assembly code in ways that are
1774
1774
// mostly the same for different targets, but have minor differences in
1775
- // syntax. If the asmstring contains {|} characters in them, this integer
1776
- // will specify which alternative to use. For example "{x|y|z}" with Variant
1775
+ // syntax. If the asmstring contains {|} characters in them, this integer
1776
+ // will specify which alternative to use. For example "{x|y|z}" with Variant
1777
1777
// == 1, will expand to "y".
1778
1778
int Variant = 0;
1779
1779
}
@@ -1798,20 +1798,20 @@ class Target {
1798
1798
list<AsmWriter> AssemblyWriters = [DefaultAsmWriter];
1799
1799
1800
1800
// AllowRegisterRenaming - Controls whether this target allows
1801
- // post-register-allocation renaming of registers. This is done by
1801
+ // post-register-allocation renaming of registers. This is done by
1802
1802
// setting hasExtraDefRegAllocReq and hasExtraSrcRegAllocReq to 1
1803
1803
// for all opcodes if this flag is set to 0.
1804
1804
int AllowRegisterRenaming = 0;
1805
1805
}
1806
1806
1807
1807
//===----------------------------------------------------------------------===//
1808
1808
// Processor chip sets - These values represent each of the chip sets supported
1809
- // by the scheduler. Each Processor definition requires corresponding
1809
+ // by the scheduler. Each Processor definition requires corresponding
1810
1810
// instruction itineraries.
1811
1811
//
1812
1812
class Processor<string n, ProcessorItineraries pi, list<SubtargetFeature> f,
1813
1813
list<SubtargetFeature> tunef = []> {
1814
- // Name - Chip set name. Used by command line (-mcpu=) to determine the
1814
+ // Name - Chip set name. Used by command line (-mcpu=) to determine the
1815
1815
// appropriate target chip.
1816
1816
//
1817
1817
string Name = n;
@@ -1829,7 +1829,7 @@ class Processor<string n, ProcessorItineraries pi, list<SubtargetFeature> f,
1829
1829
1830
1830
// TuneFeatures - list of features for tuning for this CPU. If the target
1831
1831
// supports -mtune, this should contain the list of features used to make
1832
- // microarchitectural optimization decisions for a given processor. While
1832
+ // microarchitectural optimization decisions for a given processor. While
1833
1833
// Features should contain the architectural features for the processor.
1834
1834
list<SubtargetFeature> TuneFeatures = tunef;
1835
1835
}
@@ -1869,7 +1869,7 @@ class InstrMapping {
1869
1869
//
1870
1870
// def Add: { let BaseOp = 'ADD'; let predSense = 'nopred' }
1871
1871
// def Add_predtrue: { let BaseOp = 'ADD'; let predSense = 'true' }
1872
- // def Add_predfalse: { let BaseOp = 'ADD'; let predSense = 'false' }
1872
+ // def Add_predfalse: { let BaseOp = 'ADD'; let predSense = 'false' }
1873
1873
list<string> RowFields = [];
1874
1874
1875
1875
// List of fields/attributes that are same for all the instructions
0 commit comments