Skip to content

Commit f32a908

Browse files
author
Thomas Symalla
committed
Add * prefix to argument lines
1 parent a638574 commit f32a908

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

lib/TableGen/GenDialect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class Builder;
186186
for (const auto &[idx, arg] : llvm::enumerate(op.getFullArguments())) {
187187
const std::string sanitizedName =
188188
replaceSubstring(arg.type->getBuilderCppType().str(), "::llvm::");
189-
description += "/// " + sanitizedName + " " + arg.name + "\n";
189+
description += "/// * " + sanitizedName + " " + arg.name + "\n";
190190
}
191191
}
192192

test/example/generated/ExampleDialect.h.inc

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ Initial = 2,
118118
/// numbers and puts a constant on top.
119119
///
120120
/// Arguments
121-
/// Value * lhs
122-
/// Value * rhs
123-
/// uint32_t extra
121+
/// * Value * lhs
122+
/// * Value * rhs
123+
/// * uint32_t extra
124124

125125
class Add32Op : public ::llvm::CallInst {
126126
static const ::llvm::StringLiteral s_name; //{"xd.ir.add32"};
@@ -159,8 +159,8 @@ Extra = 2,
159159
/// Longer description of... well, you know by now how this goes.
160160
///
161161
/// Arguments
162-
/// Value * lhs
163-
/// Value * rhs
162+
/// * Value * lhs
163+
/// * Value * rhs
164164

165165
class CombineOp : public ::llvm::CallInst {
166166
static const ::llvm::StringLiteral s_name; //{"xd.ir.combine"};
@@ -196,8 +196,8 @@ Rhs = 1,
196196
/// Return the element of `vector` with the given `index`.
197197
///
198198
/// Arguments
199-
/// Value * vector
200-
/// Value * index
199+
/// * Value * vector
200+
/// * Value * index
201201

202202
class ExtractElementOp : public ::llvm::CallInst {
203203
static const ::llvm::StringLiteral s_name; //{"xd.ir.extractelement"};
@@ -233,7 +233,7 @@ Index = 1,
233233
/// Demonstrate a more complex unification case.
234234
///
235235
/// Arguments
236-
/// Value * source
236+
/// * Value * source
237237

238238
class FromFixedVectorOp : public ::llvm::CallInst {
239239
static const ::llvm::StringLiteral s_name; //{"xd.ir.fromfixedvector"};
@@ -294,7 +294,7 @@ bool verifier(::llvm::raw_ostream &errs);
294294
/// position.
295295
///
296296
/// Arguments
297-
/// Value * source
297+
/// * Value * source
298298

299299
class IExtOp : public ::llvm::CallInst {
300300
static const ::llvm::StringLiteral s_name; //{"xd.ir.iext"};
@@ -327,7 +327,7 @@ Source = 0,
327327
/// Demonstrates the use of a predicate in an unvalued position.
328328
///
329329
/// Arguments
330-
/// Value * source
330+
/// * Value * source
331331

332332
class ITruncOp : public ::llvm::CallInst {
333333
static const ::llvm::StringLiteral s_name; //{"xd.ir.itrunc"};
@@ -360,7 +360,7 @@ Source = 0,
360360
/// Make an argument immutable
361361
///
362362
/// Arguments
363-
/// bool val
363+
/// * bool val
364364

365365
class ImmutableOp : public ::llvm::CallInst {
366366
static const ::llvm::StringLiteral s_name; //{"xd.ir.immutable.op"};
@@ -391,9 +391,9 @@ Val = 0,
391391
/// returns the result.
392392
///
393393
/// Arguments
394-
/// Value * vector
395-
/// Value * value
396-
/// Value * index
394+
/// * Value * vector
395+
/// * Value * value
396+
/// * Value * index
397397

398398
class InsertElementOp : public ::llvm::CallInst {
399399
static const ::llvm::StringLiteral s_name; //{"xd.ir.insertelement"};
@@ -433,8 +433,8 @@ Index = 2,
433433
/// dialect compiler's first choice
434434
///
435435
/// Arguments
436-
/// Value * instName
437-
/// Value * instName_0
436+
/// * Value * instName
437+
/// * Value * instName_0
438438

439439
class InstNameConflictDoubleOp : public ::llvm::CallInst {
440440
static const ::llvm::StringLiteral s_name; //{"xd.ir.inst.name.conflict.double"};
@@ -472,7 +472,7 @@ InstName_0 = 1,
472472
/// will be renamed.
473473
///
474474
/// Arguments
475-
/// Value * instName
475+
/// * Value * instName
476476

477477
class InstNameConflictOp : public ::llvm::CallInst {
478478
static const ::llvm::StringLiteral s_name; //{"xd.ir.inst.name.conflict"};
@@ -640,7 +640,7 @@ bool verifier(::llvm::raw_ostream &errs);
640640
/// Longer description of how this operation writes pieces of data.
641641
///
642642
/// Arguments
643-
/// Value * data
643+
/// * Value * data
644644

645645
class SetWriteOp : public ::llvm::CallInst {
646646
static const ::llvm::StringLiteral s_name; //{"xd.ir.set.write"};
@@ -672,7 +672,7 @@ Data = 0,
672672
/// Returns the store size of the given type in bytes.
673673
///
674674
/// Arguments
675-
/// Type * sizeof_type
675+
/// * Type * sizeof_type
676676

677677
class SizeOfOp : public ::llvm::CallInst {
678678
static const ::llvm::StringLiteral s_name; //{"xd.ir.sizeof"};
@@ -705,9 +705,9 @@ SizeofType = 0,
705705
/// Illustrate the use of the OpClass feature.
706706
///
707707
/// Arguments
708-
/// Value * ptr
709-
/// Value * count
710-
/// Value * initial
708+
/// * Value * ptr
709+
/// * Value * count
710+
/// * Value * initial
711711

712712
class StreamAddOp : public StreamReduceOp {
713713
static const ::llvm::StringLiteral s_name; //{"xd.ir.stream.add"};
@@ -736,9 +736,9 @@ bool verifier(::llvm::raw_ostream &errs);
736736
/// Illustrate the use of the OpClass feature.
737737
///
738738
/// Arguments
739-
/// Value * ptr
740-
/// Value * count
741-
/// Value * initial
739+
/// * Value * ptr
740+
/// * Value * count
741+
/// * Value * initial
742742

743743
class StreamMaxOp : public StreamReduceOp {
744744
static const ::llvm::StringLiteral s_name; //{"xd.ir.stream.max"};
@@ -767,9 +767,9 @@ bool verifier(::llvm::raw_ostream &errs);
767767
/// Illustrate the use of the OpClass feature.
768768
///
769769
/// Arguments
770-
/// Value * ptr
771-
/// Value * count
772-
/// Value * initial
770+
/// * Value * ptr
771+
/// * Value * count
772+
/// * Value * initial
773773

774774
class StreamMinOp : public StreamReduceOp {
775775
static const ::llvm::StringLiteral s_name; //{"xd.ir.stream.min"};
@@ -798,7 +798,7 @@ bool verifier(::llvm::raw_ostream &errs);
798798
/// The argument should not have a setter method
799799
///
800800
/// Arguments
801-
/// StringRef val
801+
/// * StringRef val
802802

803803
class StringAttrOp : public ::llvm::CallInst {
804804
static const ::llvm::StringLiteral s_name; //{"xd.ir.string.attr.op"};
@@ -828,7 +828,7 @@ Val = 0,
828828
/// Longer description of how this operation writes a piece of data.
829829
///
830830
/// Arguments
831-
/// Value * data
831+
/// * Value * data
832832

833833
class WriteOp : public ::llvm::CallInst {
834834
static const ::llvm::StringLiteral s_name; //{"xd.ir.write"};
@@ -860,8 +860,8 @@ Data = 0,
860860
/// Longer description of how this operation writes pieces of data.
861861
///
862862
/// Arguments
863-
/// Value * data
864-
/// ArrayRef<Value *> args
863+
/// * Value * data
864+
/// * ArrayRef<Value *> args
865865

866866
class WriteVarArgOp : public ::llvm::CallInst {
867867
static const ::llvm::StringLiteral s_name; //{"xd.ir.write.vararg"};

0 commit comments

Comments
 (0)