Skip to content

Commit b393a87

Browse files
authored
[NFC] Remove extra spaces from comments in Target.td (#123788)
1 parent cdd3214 commit b393a87

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

llvm/include/llvm/Target/Target.td

+38-38
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class SubRegIndex<int size, int offset = 0> {
100100

101101
// The size/offset information, parameterized by a HW mode.
102102
// 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,
104104
// the Size and Offset fields are ignored.
105105
SubRegRangeByHwMode SubRegRanges;
106106

@@ -159,13 +159,13 @@ class RegAltNameIndex {
159159
def NoRegAltName : RegAltNameIndex;
160160

161161
// 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.
163163
class Register<string n, list<string> altNames = []> {
164164
string Namespace = "";
165165
string AsmName = n;
166166
list<string> AltNames = altNames;
167167

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
169169
// modification of this register can potentially read or modify the aliased
170170
// registers.
171171
list<Register> Aliases = [];
@@ -187,8 +187,8 @@ class Register<string n, list<string> altNames = []> {
187187

188188
// DwarfNumbers - Numbers used internally by gcc/gdb to identify the register.
189189
// 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
192192
// -1 indicates that the gcc number is undefined and -2 that register number
193193
// is invalid for this mode/flavour.
194194
list<int> DwarfNumbers = [];
@@ -209,7 +209,7 @@ class Register<string n, list<string> altNames = []> {
209209
list<int> CostPerUse = [0];
210210

211211
// 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
213213
// x86 register AX is covered by its sub-registers AL and AH, but EAX is not
214214
// covered by its sub-register AX.
215215
bit CoveredBySubRegs = false;
@@ -239,7 +239,7 @@ class RegisterWithSubRegs<string n, list<Register> subregs> : Register<n> {
239239
}
240240

241241
// 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
243243
// only ever be used for defining multiclasses that are polymorphic over both
244244
// RegisterClass's and other Operand's.
245245
class DAGOperand {
@@ -249,7 +249,7 @@ class DAGOperand {
249249

250250
// RegisterClass - Now that all of the registers are defined, and aliases
251251
// 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
253253
// registers by register allocators.
254254
//
255255
class RegisterClass<string namespace, list<ValueType> regTypes, int alignment,
@@ -261,14 +261,14 @@ class RegisterClass<string namespace, list<ValueType> regTypes, int alignment,
261261
RegInfoByHwMode RegInfos;
262262

263263
// 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
266266
// types in same register, for example vector values with 128-bit total size,
267267
// but different count/size of items, like SSE on x86.
268268
//
269269
list<ValueType> RegTypes = regTypes;
270270

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
272272
// zero lets tablegen pick an appropriate size.
273273
int Size = 0;
274274

@@ -283,7 +283,7 @@ class RegisterClass<string namespace, list<ValueType> regTypes, int alignment,
283283
// value means copying is extremely expensive or impossible.
284284
int CopyCost = 1;
285285

286-
// MemberList - Specify which registers are in this class. If the
286+
// MemberList - Specify which registers are in this class. If the
287287
// allocation_order_* method are not specified, this also defines the order of
288288
// allocation used by the register allocator.
289289
//
@@ -295,7 +295,7 @@ class RegisterClass<string namespace, list<ValueType> regTypes, int alignment,
295295
RegAltNameIndex altNameIndex = idx;
296296

297297
// 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
299299
// model instruction operand constraints, and should have isAllocatable = 0.
300300
bit isAllocatable = true;
301301

@@ -356,9 +356,9 @@ class RegisterClass<string namespace, list<ValueType> regTypes, int alignment,
356356
bits<8> TSFlags = 0;
357357

358358
// 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
360360
// 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.
362362
int BaseClassOrder = ?;
363363
}
364364

@@ -377,7 +377,7 @@ class RegisterClass<string namespace, list<ValueType> regTypes, int alignment,
377377
// also in the second set.
378378
//
379379
// (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
381381
// when generating the sequence.
382382
//
383383
// (shl GPR, 4) - Remove the first N elements.
@@ -455,14 +455,14 @@ class RegisterCategory<list<RegisterClass> classes> {
455455

456456
//===----------------------------------------------------------------------===//
457457
// 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
459459
// debug information writer to describe where values may be located during
460460
// execution.
461461
class DwarfRegNum<list<int> Numbers> {
462462
// DwarfNumbers - Numbers used internally by gcc/gdb to identify the register.
463463
// 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
466466
// -1 indicates that the gcc number is undefined and -2 that register number
467467
// is invalid for this mode/flavour.
468468
list<int> DwarfNumbers = Numbers;
@@ -481,7 +481,7 @@ class DwarfRegAlias<Register reg> {
481481
//
482482
class SubtargetFeature<string n, string f, string v, string d,
483483
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
485485
// appropriate target chip.
486486
//
487487
string Name = n;
@@ -500,7 +500,7 @@ class SubtargetFeature<string n, string f, string v, string d,
500500
//
501501
string Value = v;
502502

503-
// Desc - Feature description. Used by command line (-mattr=) to display help
503+
// Desc - Feature description. Used by command line (-mattr=) to display help
504504
// information.
505505
//
506506
string Desc = d;
@@ -818,7 +818,7 @@ class Predicate<string cond> {
818818
string CondString = cond;
819819

820820
/// 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
822822
/// feature from the AssemblerPredicate class in addition to Predicate.
823823
bit AssemblerMatcherPredicate = false;
824824

@@ -906,7 +906,7 @@ def encoder;
906906
def decoder;
907907

908908
/// 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
910910
/// type that it doesn't know, and resolves the actual regclass to use by using
911911
/// the TargetRegisterInfo::getPointerRegClass() hook at codegen time.
912912
class PointerLikeRegClass<int Kind> {
@@ -992,7 +992,7 @@ def ImmAsmOperand : AsmOperandClass {
992992
}
993993

994994
/// 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
996996
/// needed, though this should not be needed for RISC targets.
997997
class Operand<ValueType ty> : DAGOperand {
998998
ValueType Type = ty;
@@ -1107,7 +1107,7 @@ class PredicateOp;
11071107

11081108
/// OperandWithDefaultOps - This Operand class can be used as the parent class
11091109
/// 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
11111111
/// pattern definitions for instructions that have target specific flags
11121112
/// encoded as immediate operands.
11131113
class OperandWithDefaultOps<ValueType ty, dag defaultops>
@@ -1116,7 +1116,7 @@ class OperandWithDefaultOps<ValueType ty, dag defaultops>
11161116
}
11171117

11181118
/// 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
11201120
/// AlwaysVal specifies the value of this predicate when set to "always
11211121
/// execute".
11221122
class PredicateOperand<ValueType ty, dag OpTypes, dag AlwaysVal>
@@ -1559,7 +1559,7 @@ include "llvm/Target/GenericOpcodes.td"
15591559
//
15601560
class AsmParser {
15611561
// 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
15631563
// name.
15641564
string AsmParserClassName = "AsmParser";
15651565

@@ -1632,7 +1632,7 @@ def DefaultAsmParser : AsmParser;
16321632
// implemented by targets to describe such variants.
16331633
//
16341634
class AsmParserVariant {
1635-
// Variant - AsmParsers can be of multiple different variants. Variants are
1635+
// Variant - AsmParsers can be of multiple different variants. Variants are
16361636
// used to support targets that need to parse multiple formats for the
16371637
// assembly language.
16381638
int Variant = 0;
@@ -1690,8 +1690,8 @@ class TokenAlias<string From, string To> {
16901690
}
16911691

16921692
/// 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:
16951695
/// sal %al, 1 -> shl %al, 1
16961696
/// sal %ax, %cl -> shl %ax, %cl
16971697
/// sal %eax, %cl -> shl %eax, %cl
@@ -1769,11 +1769,11 @@ class AsmWriter {
17691769
// FIXME: Remove after all ports are updated.
17701770
int PassSubtarget = 0;
17711771

1772-
// Variant - AsmWriters can be of multiple different variants. Variants are
1772+
// Variant - AsmWriters can be of multiple different variants. Variants are
17731773
// used to support targets that need to emit assembly code in ways that are
17741774
// 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
17771777
// == 1, will expand to "y".
17781778
int Variant = 0;
17791779
}
@@ -1798,20 +1798,20 @@ class Target {
17981798
list<AsmWriter> AssemblyWriters = [DefaultAsmWriter];
17991799

18001800
// 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
18021802
// setting hasExtraDefRegAllocReq and hasExtraSrcRegAllocReq to 1
18031803
// for all opcodes if this flag is set to 0.
18041804
int AllowRegisterRenaming = 0;
18051805
}
18061806

18071807
//===----------------------------------------------------------------------===//
18081808
// 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
18101810
// instruction itineraries.
18111811
//
18121812
class Processor<string n, ProcessorItineraries pi, list<SubtargetFeature> f,
18131813
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
18151815
// appropriate target chip.
18161816
//
18171817
string Name = n;
@@ -1829,7 +1829,7 @@ class Processor<string n, ProcessorItineraries pi, list<SubtargetFeature> f,
18291829

18301830
// TuneFeatures - list of features for tuning for this CPU. If the target
18311831
// 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
18331833
// Features should contain the architectural features for the processor.
18341834
list<SubtargetFeature> TuneFeatures = tunef;
18351835
}
@@ -1869,7 +1869,7 @@ class InstrMapping {
18691869
//
18701870
// def Add: { let BaseOp = 'ADD'; let predSense = 'nopred' }
18711871
// 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' }
18731873
list<string> RowFields = [];
18741874

18751875
// List of fields/attributes that are same for all the instructions

0 commit comments

Comments
 (0)