llvm-project/flang/docs
Tom Eccles 49bd444fc3 [flang][hlfir] add hlfir.matmul_transpose operation
This operation will be used to transform MATMUL(TRANSPOSE(a), b). The
transformation will go in the following stages:
        1. Lowering to hlfir.transpose and hlfir.matmul
        2. Canonicalise to hlfir.matmul_transpose
        3. hlfir.matmul_transpose will be lowered to FIR as a new runtime
          library call

Step 2 (and this operation) are included for consistency with the other
hlfir intrinsic operations and to avoid mixing concerns in the intrinsic
lowering pass.

In step 3, a new runtime library call is used because this operation is
most easily implemented in one go (the transposed indexing actually
makes the indexing simpler than for a normal matrix multiplication). In
the long run, it is intended that HLFIR will allow the same buffer
to be shared between different runtime calls without temporary
allocations, but in this specific case we can do even better than that
with a dedicated implementation.

This should speed up galgel from SPEC2000 (but this hadn't been tested
yet). The optimization was implemented in Classic Flang.

Reviewed By: vzakhari

Differential Revision: https://reviews.llvm.org/D145957
2023-03-17 09:30:04 +00:00
..
_static
_templates [Flang][WWW] Update Bug Reports link to point to Github issues 2023-03-01 12:17:55 +00:00
_themes/llvm-theme
FIR
Aliasing.md
AliasingAnalysisFIR.md
ArrayComposition.md
BijectiveInternalNameUniquing.md [flang] Block construct 2023-02-28 09:55:10 -08:00
C++17.md
C++style.md
Calls.md
Character.md
CMakeLists.txt
compiler_driver.png
ComplexOperations.md
conf.py
ControlFlowGraph.md
DesignGuideline.md
Directives.md
DoConcurrent.md
doxygen-mainpage.dox
doxygen.cfg.in
Extensions.md [flang] Accept non-interoperable LOGICAL scalar dummy arguments 2023-03-13 17:58:42 -07:00
f2018-grammar.md
FIRArrayOperations.md
flang-c-style.el
FlangDriver.md [flang] Handle Flang examples consistently with LLVM. 2023-03-14 13:08:43 -07:00
FlangOptionsDocs.td
FortranFeatureHistory.md
FortranForCProgrammers.md
FortranIR.md
FortranLLVMTestSuite.md
frontend_driver.png
fstack-arrays.md [flang] RFC: -fstack-arrays 2023-02-13 10:53:17 +00:00
GettingInvolved.md
HighLevelFIR.md [flang][hlfir] add hlfir.matmul_transpose operation 2023-03-17 09:30:04 +00:00
ImplementingASemanticCheck.md
index.md
Intrinsics.md [flang][doc] Remove DCMPLX intrinsic from the Intrinsic Procedures Lacking Support list 2022-11-29 14:15:02 -05:00
IntrinsicTypes.md
IORuntimeInternals.md
LabelResolution.md
ModFiles.md
OpenMP-4.5-grammar.md
OpenMP-semantics.md
OptionComparison.md [Docs] Fix a link for cray-pointer documentation 2023-03-08 19:43:14 +05:30
Overview.md [Flang] Reword the overview document 2022-12-21 11:39:56 -08:00
ParameterizedDerivedTypes.md
ParserCombinators.md
Parsing.md
PolymorphicEntities.md [flang][NFC] Remove implemented TODOs 2022-12-05 10:32:08 +01:00
Preprocessing.md
ProcedurePointer.md [flang] Support codegen for global procedure pointer 2022-12-07 21:24:01 +08:00
PullRequestChecklist.md
ReleaseNotes.md flang: remove the hardcoded 15 from the release notes 2023-01-29 22:14:58 +01:00
RuntimeDescriptor.md
RuntimeTypeInfo.md
Semantics.md