@@ -598,7 +598,7 @@ createMacroKernel(isl::schedule_node Node,
598598// / @param MMI Parameters of the matrix multiplication operands.
599599// / @return The size of the widest type of the matrix multiplication operands
600600// / in bytes, including alignment padding.
601- static uint64_t getMatMulAlignTypeSize (MatMulInfoTy MMI) {
601+ static uint64_t getMatMulAlignTypeSize (const MatMulInfoTy & MMI) {
602602 auto *S = MMI.A ->getStatement ()->getParent ();
603603 auto &DL = S->getFunction ().getParent ()->getDataLayout ();
604604 auto ElementSizeA = DL.getTypeAllocSize (MMI.A ->getElementType ());
@@ -613,7 +613,7 @@ static uint64_t getMatMulAlignTypeSize(MatMulInfoTy MMI) {
613613// / @param MMI Parameters of the matrix multiplication operands.
614614// / @return The size of the widest type of the matrix multiplication operands
615615// / in bits.
616- static uint64_t getMatMulTypeSize (MatMulInfoTy MMI) {
616+ static uint64_t getMatMulTypeSize (const MatMulInfoTy & MMI) {
617617 auto *S = MMI.A ->getStatement ()->getParent ();
618618 auto &DL = S->getFunction ().getParent ()->getDataLayout ();
619619 auto ElementSizeA = DL.getTypeSizeInBits (MMI.A ->getElementType ());
@@ -635,7 +635,7 @@ static uint64_t getMatMulTypeSize(MatMulInfoTy MMI) {
635635// / @return The structure of type MicroKernelParamsTy.
636636// / @see MicroKernelParamsTy
637637static MicroKernelParamsTy getMicroKernelParams (const TargetTransformInfo *TTI,
638- MatMulInfoTy MMI) {
638+ const MatMulInfoTy & MMI) {
639639 assert (TTI && " The target transform info should be provided." );
640640
641641 // Nvec - Number of double-precision floating-point numbers that can be hold
@@ -712,7 +712,7 @@ static void getTargetCacheParameters(const llvm::TargetTransformInfo *TTI) {
712712static MacroKernelParamsTy
713713getMacroKernelParams (const llvm::TargetTransformInfo *TTI,
714714 const MicroKernelParamsTy &MicroKernelParams,
715- MatMulInfoTy MMI) {
715+ const MatMulInfoTy & MMI) {
716716 getTargetCacheParameters (TTI);
717717 // According to www.cs.utexas.edu/users/flame/pubs/TOMS-BLIS-Analytical.pdf,
718718 // it requires information about the first two levels of a cache to determine
0 commit comments