diff options
author | shadchin <shadchin@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:44:39 +0300 |
commit | e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (patch) | |
tree | 64175d5cadab313b3e7039ebaa06c5bc3295e274 /contrib/libs/llvm12/include/llvm/IR/MatrixBuilder.h | |
parent | 2598ef1d0aee359b4b6d5fdd1758916d5907d04f (diff) | |
download | ydb-e9656aae26e0358d5378e5b63dcac5c8dbe0e4d0.tar.gz |
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/IR/MatrixBuilder.h')
-rw-r--r-- | contrib/libs/llvm12/include/llvm/IR/MatrixBuilder.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/contrib/libs/llvm12/include/llvm/IR/MatrixBuilder.h b/contrib/libs/llvm12/include/llvm/IR/MatrixBuilder.h index 6e8b6354b4..c753a2031c 100644 --- a/contrib/libs/llvm12/include/llvm/IR/MatrixBuilder.h +++ b/contrib/libs/llvm12/include/llvm/IR/MatrixBuilder.h @@ -45,19 +45,19 @@ template <class IRBuilderTy> class MatrixBuilder { Value *RHS) { assert((LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()) && "One of the operands must be a matrix (embedded in a vector)"); - if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { - assert(!isa<ScalableVectorType>(LHS->getType()) && - "LHS Assumed to be fixed width"); + if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { + assert(!isa<ScalableVectorType>(LHS->getType()) && + "LHS Assumed to be fixed width"); RHS = B.CreateVectorSplat( - cast<VectorType>(LHS->getType())->getElementCount(), RHS, + cast<VectorType>(LHS->getType())->getElementCount(), RHS, "scalar.splat"); - } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { - assert(!isa<ScalableVectorType>(RHS->getType()) && - "RHS Assumed to be fixed width"); + } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { + assert(!isa<ScalableVectorType>(RHS->getType()) && + "RHS Assumed to be fixed width"); LHS = B.CreateVectorSplat( - cast<VectorType>(RHS->getType())->getElementCount(), LHS, + cast<VectorType>(RHS->getType())->getElementCount(), LHS, "scalar.splat"); - } + } return {LHS, RHS}; } @@ -167,19 +167,19 @@ public: /// matrixes. Value *CreateAdd(Value *LHS, Value *RHS) { assert(LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()); - if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { - assert(!isa<ScalableVectorType>(LHS->getType()) && - "LHS Assumed to be fixed width"); + if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { + assert(!isa<ScalableVectorType>(LHS->getType()) && + "LHS Assumed to be fixed width"); RHS = B.CreateVectorSplat( - cast<VectorType>(LHS->getType())->getElementCount(), RHS, + cast<VectorType>(LHS->getType())->getElementCount(), RHS, "scalar.splat"); - } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { - assert(!isa<ScalableVectorType>(RHS->getType()) && - "RHS Assumed to be fixed width"); + } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { + assert(!isa<ScalableVectorType>(RHS->getType()) && + "RHS Assumed to be fixed width"); LHS = B.CreateVectorSplat( - cast<VectorType>(RHS->getType())->getElementCount(), LHS, + cast<VectorType>(RHS->getType())->getElementCount(), LHS, "scalar.splat"); - } + } return cast<VectorType>(LHS->getType()) ->getElementType() @@ -192,19 +192,19 @@ public: /// point matrixes. Value *CreateSub(Value *LHS, Value *RHS) { assert(LHS->getType()->isVectorTy() || RHS->getType()->isVectorTy()); - if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { - assert(!isa<ScalableVectorType>(LHS->getType()) && - "LHS Assumed to be fixed width"); + if (LHS->getType()->isVectorTy() && !RHS->getType()->isVectorTy()) { + assert(!isa<ScalableVectorType>(LHS->getType()) && + "LHS Assumed to be fixed width"); RHS = B.CreateVectorSplat( - cast<VectorType>(LHS->getType())->getElementCount(), RHS, + cast<VectorType>(LHS->getType())->getElementCount(), RHS, "scalar.splat"); - } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { - assert(!isa<ScalableVectorType>(RHS->getType()) && - "RHS Assumed to be fixed width"); + } else if (!LHS->getType()->isVectorTy() && RHS->getType()->isVectorTy()) { + assert(!isa<ScalableVectorType>(RHS->getType()) && + "RHS Assumed to be fixed width"); LHS = B.CreateVectorSplat( - cast<VectorType>(RHS->getType())->getElementCount(), LHS, + cast<VectorType>(RHS->getType())->getElementCount(), LHS, "scalar.splat"); - } + } return cast<VectorType>(LHS->getType()) ->getElementType() |