Skip to content

Commit

Permalink
[IR] avoid -Wdocumentation spew about HTML tags
Browse files Browse the repository at this point in the history
There's probably a better solution, but adding spaces
in the IR vector examples sidesteps the problem without
uglifying the plain text. 

llvm-svn: 335468
  • Loading branch information
rotateright committed Jun 25, 2018
1 parent 6a60f2f commit 750ea09
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions llvm/include/llvm/IR/Instructions.h
Original file line number Diff line number Diff line change
@@ -2584,12 +2584,12 @@ class ShuffleVectorInst : public Instruction {
/// For example, a simple 2x2 matrix can be transposed with:
///
/// ; Original matrix
/// m0 = <a, b>
/// m1 = <c, d>
/// m0 = < a, b >
/// m1 = < c, d >
///
/// ; Transposed matrix
/// t0 = <a, c> = shufflevector m0, m1, <0, 2>
/// t1 = <b, d> = shufflevector m0, m1, <1, 3>
/// t0 = < a, c > = shufflevector m0, m1, < 0, 2 >
/// t1 = < b, d > = shufflevector m0, m1, < 1, 3 >
///
/// For matrices having greater than n columns, the resulting nx2 transposed
/// matrix is stored in two result vectors such that one vector contains
@@ -2598,12 +2598,12 @@ class ShuffleVectorInst : public Instruction {
/// a 2x4 matrix can be transposed with:
///
/// ; Original matrix
/// m0 = <a, b, c, d>
/// m1 = <e, f, g, h>
/// m0 = < a, b, c, d >
/// m1 = < e, f, g, h >
///
/// ; Transposed matrix
/// t0 = <a, e, c, g> = shufflevector m0, m1 <0, 4, 2, 6>
/// t1 = <b, f, d, h> = shufflevector m0, m1 <1, 5, 3, 7>
/// t0 = < a, e, c, g > = shufflevector m0, m1 < 0, 4, 2, 6 >
/// t1 = < b, f, d, h > = shufflevector m0, m1 < 1, 5, 3, 7 >
static bool isTransposeMask(ArrayRef<int> Mask);
static bool isTransposeMask(const Constant *Mask) {
assert(Mask->getType()->isVectorTy() && "Shuffle needs vector constant.");

0 comments on commit 750ea09

Please sign in to comment.