Home
last modified time | relevance | path

Searched refs:Matrix (Results 1 – 25 of 113) sorted by relevance

12345

/llvm-project-15.0.7/mlir/lib/Analysis/Presburger/
H A DMatrix.cpp16 Matrix::Matrix(unsigned rows, unsigned columns, unsigned reservedRows, in Matrix() function in Matrix
24 Matrix Matrix::identity(unsigned dimension) { in identity()
25 Matrix matrix(dimension, dimension); in identity()
31 unsigned Matrix::getNumReservedRows() const { in getNumReservedRows()
35 void Matrix::reserveRows(unsigned rows) { in reserveRows()
39 unsigned Matrix::appendExtraRow() { in appendExtraRow()
209 void Matrix::negateColumn(unsigned column) { in negateColumn()
214 void Matrix::negateRow(unsigned row) { in negateRow()
223 int64_t Matrix::normalizeRow(unsigned row) { in normalizeRow()
250 void Matrix::print(raw_ostream &os) const { in print()
[all …]
H A DLinearTransform.cpp15 LinearTransform::LinearTransform(Matrix &&oMatrix) : matrix(oMatrix) {} in LinearTransform()
16 LinearTransform::LinearTransform(const Matrix &oMatrix) : matrix(oMatrix) {} in LinearTransform()
23 static void modEntryColumnOperation(Matrix &m, unsigned row, unsigned sourceCol, in modEntryColumnOperation()
24 unsigned targetCol, Matrix &otherMatrix) { in modEntryColumnOperation()
34 LinearTransform::makeTransformToColumnEchelon(Matrix m) { in makeTransformToColumnEchelon()
39 Matrix resultMatrix = Matrix::identity(m.getNumColumns()); in makeTransformToColumnEchelon()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/PBQP/
H A DMath.h121 class Matrix {
140 Matrix(const Matrix &M) in Matrix() function
147 Matrix(Matrix &&M) in Matrix() function
205 Matrix transpose() const { in transpose()
207 Matrix M(Cols, Rows); in transpose()
215 Matrix& operator+=(const Matrix &M) {
224 Matrix operator+(const Matrix &M) {
226 Matrix Tmp(*this);
272 class MDMatrix : public Matrix {
274 MDMatrix(const Matrix &m) : Matrix(m), md(*this) {} in MDMatrix()
[all …]
H A DReductionRules.h34 using Matrix = typename GraphT::Matrix; in applyR1() local
43 const Matrix &ECosts = G.getEdgeCosts(EId); in applyR1()
78 using Matrix = typename GraphT::Matrix; in applyR2() local
96 const Matrix *YXECosts = FlipEdge1 ? in applyR2()
97 new Matrix(G.getEdgeCosts(YXEId).transpose()) : in applyR2()
100 const Matrix *ZXECosts = FlipEdge2 ? in applyR2()
101 new Matrix(G.getEdgeCosts(ZXEId).transpose()) : in applyR2()
134 const Matrix &YZECosts = G.getEdgeCosts(YZEId); in applyR2()
182 using Matrix = typename GraphT::Matrix; in backpropagate() local
203 const Matrix& edgeCosts = G.getEdgeCosts(EId); in backpropagate()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dcxx11-call-to-deleted-constructor.cpp11 class Matrix { class
18 template <class VT, unsigned int SIZE> using Vector = Matrix<VT, SIZE, 1>;
24 template <class VT> class Matrix<VT, 0, 0> { // expected-note {{passing argument to parameter here}} class
27 Matrix(const unsigned int nRows, const unsigned int nColumns, const value_type* data = nullptr);
29Matrix(const std::initializer_list<value_type>& list) = delete; // expected-note {{'Matrix' has be…
35 Matrix<double> winI(0, 3); in getLaplacianClosedForm()
/llvm-project-15.0.7/mlir/unittests/Analysis/Presburger/
H A DLinearTransformTest.cpp16 void testColumnEchelonForm(const Matrix &m, unsigned expectedRank) { in testColumnEchelonForm()
46 Matrix m1(2, 2); in TEST()
53 Matrix m2(2, 2); in TEST()
60 Matrix m3(2, 2); in TEST()
68 Matrix m4(2, 2); in TEST()
75 Matrix m5(2, 2); in TEST()
82 Matrix m6(2, 2); in TEST()
H A DMatrixTest.cpp17 Matrix mat(5, 5); in TEST()
27 Matrix mat(5, 5); in TEST()
49 Matrix mat(5, 5); in TEST()
71 Matrix mat(5, 5); in TEST()
96 Matrix mat(5, 5, 5, 10); in TEST()
133 Matrix mat(5, 5, 5, 10); in TEST()
171 Matrix mat(5, 5); in TEST()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DLiveRegMatrix.cpp61 if (NumRegUnits != Matrix.size()) in runOnMachineFunction()
63 Matrix.init(LIUAlloc, NumRegUnits); in runOnMachineFunction()
71 for (unsigned i = 0, e = Matrix.size(); i != e; ++i) { in releaseMemory()
72 Matrix[i].clear(); in releaseMemory()
113 Matrix[Unit].unify(VirtReg, Range); in assign()
130 Matrix[Unit].extract(VirtReg, Range); in unassign()
140 if (!Matrix[*Unit].empty()) in isPhysRegUsed()
181 Q.init(UserTag, LR, Matrix[RegUnit]); in query()
233 Q.reset(UserTag, LR, Matrix[*Units]); in checkInterference()
243 if ((VRegInterval = Matrix[*Unit].getOneVReg())) in getOneVReg()
H A DRegAllocBasic.cpp149 Matrix->unassign(LI); in INITIALIZE_PASS_DEPENDENCY()
167 Matrix->unassign(LI); in LRE_WillShrinkVirtReg()
217 LiveIntervalUnion::Query &Q = Matrix->query(VirtReg, *Units); in spillInterferences()
238 Matrix->unassign(Spill); in spillInterferences()
266 AllocationOrder::create(VirtReg.reg(), *VRM, RegClassInfo, Matrix); in selectOrSplit()
270 switch (Matrix->checkInterference(VirtReg, PhysReg)) { in selectOrSplit()
291 assert(!Matrix->checkInterference(VirtReg, PhysReg) && in selectOrSplit()
H A DAllocationOrder.cpp31 const LiveRegMatrix *Matrix) { in create() argument
37 TRI->getRegAllocationHints(VirtReg, Order, Hints, MF, &VRM, Matrix); in create()
H A DRegAllocGreedy.cpp232 Matrix->unassign(LI); in LRE_CanEraseVirtReg()
250 Matrix->unassign(LI); in LRE_WillShrinkVirtReg()
476 Matrix->unassign(*Intf); in evictInterference()
1840 Matrix->unassign(*RC); in tryLastChanceRecoloring()
1846 Matrix->assign(VirtReg, PhysReg); in tryLastChanceRecoloring()
1859 Matrix->unassign(VirtReg); in tryLastChanceRecoloring()
1868 Matrix->unassign(VirtReg); in tryLastChanceRecoloring()
1892 Matrix->unassign(*LI); in tryLastChanceRecoloring()
1945 Matrix->assign(*LI, PhysReg); in tryRecoloringCandidates()
2160 Matrix->unassign(LI); in tryHintRecoloring()
[all …]
H A DRegAllocBase.cpp63 Matrix = &mat; in init()
100 Matrix->invalidateVirtRegs(); in allocatePhysRegs()
144 Matrix->assign(*VirtReg, AvailablePhysReg); in allocatePhysRegs()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InterleavedAccess.cpp323 ArrayRef<Instruction *> Matrix, in interleave8bitStride4VF8() argument
349 Builder.CreateShuffleVector(Matrix[0], Matrix[1], MaskLow); in interleave8bitStride4VF8()
351 Builder.CreateShuffleVector(Matrix[2], Matrix[3], MaskLow); in interleave8bitStride4VF8()
401 IntrVec[0] = Builder.CreateShuffleVector(Matrix[0], Matrix[1], MaskLow); in interleave8bitStride4()
402 IntrVec[1] = Builder.CreateShuffleVector(Matrix[0], Matrix[1], MaskHigh); in interleave8bitStride4()
403 IntrVec[2] = Builder.CreateShuffleVector(Matrix[2], Matrix[3], MaskLow); in interleave8bitStride4()
404 IntrVec[3] = Builder.CreateShuffleVector(Matrix[2], Matrix[3], MaskHigh); in interleave8bitStride4()
697 Value *IntrVec1 = Builder.CreateShuffleVector(Matrix[0], Matrix[2], Mask); in transpose_4x4()
698 Value *IntrVec2 = Builder.CreateShuffleVector(Matrix[1], Matrix[3], Mask); in transpose_4x4()
703 Value *IntrVec3 = Builder.CreateShuffleVector(Matrix[0], Matrix[2], Mask); in transpose_4x4()
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Analysis/Presburger/
H A DPWMAFunction.h47 MultiAffineFunction(const IntegerPolyhedron &domain, const Matrix &output) in MultiAffineFunction()
49 MultiAffineFunction(const Matrix &output, const PresburgerSpace &space) in MultiAffineFunction()
63 const Matrix &getOutputMatrix() const { return output; } in getOutputMatrix()
112 Matrix output;
147 void addPiece(const IntegerPolyhedron &domain, const Matrix &output);
148 void addPiece(const PresburgerSet &domain, const Matrix &output);
H A DLinearTransform.h25 explicit LinearTransform(Matrix &&oMatrix);
26 explicit LinearTransform(const Matrix &oMatrix);
35 makeTransformToColumnEchelon(Matrix m);
55 Matrix matrix;
H A DMatrix.h34 class Matrix {
36 Matrix() = delete;
44 Matrix(unsigned rows, unsigned columns, unsigned reservedRows = 0,
48 static Matrix identity(unsigned dimension);
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Deasily-swappable-parameters-prefixsuffixname.cpp15 class Matrix {}; class
42 void test9(Matrix Qmat, Matrix Rmat, Matrix Tmat) {} // NO-WARN. in test9()
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dmatrix-type.cpp56 struct Matrix { struct
62 void matrix_struct_pointers(Matrix *a, Matrix *b) { in matrix_struct_pointers() argument
81 void matrix_struct_reference(Matrix &a, Matrix &b) { in matrix_struct_reference()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DMatrixBuilder.h89 CallInst *CreateColumnMajorStore(Value *Matrix, Value *Ptr, Align Alignment,
93 Value *Ops[] = {Matrix, Ptr,
96 Type *OverloadedTypes[] = {Matrix->getType(), Stride->getType()};
110 CallInst *CreateMatrixTranspose(Value *Matrix, unsigned Rows,
112 auto *OpType = cast<VectorType>(Matrix->getType());
117 Value *Ops[] = {Matrix, B.getInt32(Rows), B.getInt32(Columns)};
146 Value *CreateMatrixInsert(Value *Matrix, Value *NewVal, Value *RowIdx, in CreateMatrixInsert() argument
149 Matrix, NewVal, in CreateMatrixInsert()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVMatrixOps.td1 //===-- SPIRVMatrixOps.td - MLIR SPIR-V Matrix Ops ---------*- tablegen -*-===//
80 The type of Matrix must be the same as Result Type. Each component in
81 each column in Matrix is multiplied by Scalar.
141 Matrix must be an object of type OpTypeMatrix. The number of columns and
142 the column size of Matrix must be the reverse of those in Result Type.
143 The types of the scalar components in Matrix and Result Type must be the
146 Matrix must have of type of OpTypeMatrix.
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dmatrix-type.c143 } Matrix; typedef
145 void matrix_struct(Matrix *a, Matrix *b) { in matrix_struct()
/llvm-project-15.0.7/llvm/test/Transforms/LowerMatrixIntrinsics/
H A Dremarks-inlining.ll13 ; struct Matrix {
21 ; Matrix<Ty, R, C> add(Matrix<Ty, R, C> M1, Matrix<Ty, R, C> M2) {
22 ; Matrix<Ty, R, C> Result;
29 ; Matrix<Ty, R, C> load(Ty *Ptr) {
30 ; Matrix<Ty, R, C> Result;
31 ; Result.value = *reinterpret_cast <typename Matrix<Ty, R, C>::matrix_t *>(Ptr);
37 ; void store(Matrix<Ty, R, C> M1, Ty *Ptr) {
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dsgpr-regalloc-flags.ll22 ; DEFAULT-NEXT: Live Register Matrix
41 ; BASIC-DEFAULT-NEXT: Live Register Matrix
46 ; BASIC-DEFAULT-NEXT: Live Register Matrix
62 ; DEFAULT-BASIC-NEXT: Live Register Matrix
75 ; BASIC-BASIC-NEXT: Live Register Matrix
80 ; BASIC-BASIC-NEXT: Live Register Matrix
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSIPreAllocateWWMRegs.cpp39 LiveRegMatrix *Matrix; member in __anon86cdcd170111::SIPreAllocateWWMRegs
105 Matrix->checkInterference(LI, PhysReg) == LiveRegMatrix::IK_Free) { in processDef()
106 Matrix->assign(LI, PhysReg); in processDef()
195 Matrix = &getAnalysis<LiveRegMatrix>(); in runOnMachineFunction()
/llvm-project-15.0.7/clang/test/Sema/
H A Darray-init.c263 typedef struct _Matrix Matrix; typedef
265 const Matrix mat1 = { in test_matrix()
272 const Matrix mat2 = { in test_matrix()

12345