@@ -598,7 +598,7 @@ createMacroKernel(isl::schedule_node Node,
598
598
// / @param MMI Parameters of the matrix multiplication operands.
599
599
// / @return The size of the widest type of the matrix multiplication operands
600
600
// / in bytes, including alignment padding.
601
- static uint64_t getMatMulAlignTypeSize (MatMulInfoTy MMI) {
601
+ static uint64_t getMatMulAlignTypeSize (const MatMulInfoTy & MMI) {
602
602
auto *S = MMI.A ->getStatement ()->getParent ();
603
603
auto &DL = S->getFunction ().getParent ()->getDataLayout ();
604
604
auto ElementSizeA = DL.getTypeAllocSize (MMI.A ->getElementType ());
@@ -613,7 +613,7 @@ static uint64_t getMatMulAlignTypeSize(MatMulInfoTy MMI) {
613
613
// / @param MMI Parameters of the matrix multiplication operands.
614
614
// / @return The size of the widest type of the matrix multiplication operands
615
615
// / in bits.
616
- static uint64_t getMatMulTypeSize (MatMulInfoTy MMI) {
616
+ static uint64_t getMatMulTypeSize (const MatMulInfoTy & MMI) {
617
617
auto *S = MMI.A ->getStatement ()->getParent ();
618
618
auto &DL = S->getFunction ().getParent ()->getDataLayout ();
619
619
auto ElementSizeA = DL.getTypeSizeInBits (MMI.A ->getElementType ());
@@ -635,7 +635,7 @@ static uint64_t getMatMulTypeSize(MatMulInfoTy MMI) {
635
635
// / @return The structure of type MicroKernelParamsTy.
636
636
// / @see MicroKernelParamsTy
637
637
static MicroKernelParamsTy getMicroKernelParams (const TargetTransformInfo *TTI,
638
- MatMulInfoTy MMI) {
638
+ const MatMulInfoTy & MMI) {
639
639
assert (TTI && " The target transform info should be provided." );
640
640
641
641
// Nvec - Number of double-precision floating-point numbers that can be hold
@@ -712,7 +712,7 @@ static void getTargetCacheParameters(const llvm::TargetTransformInfo *TTI) {
712
712
static MacroKernelParamsTy
713
713
getMacroKernelParams (const llvm::TargetTransformInfo *TTI,
714
714
const MicroKernelParamsTy &MicroKernelParams,
715
- MatMulInfoTy MMI) {
715
+ const MatMulInfoTy & MMI) {
716
716
getTargetCacheParameters (TTI);
717
717
// According to www.cs.utexas.edu/users/flame/pubs/TOMS-BLIS-Analytical.pdf,
718
718
// it requires information about the first two levels of a cache to determine
0 commit comments