mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-01 07:30:33 +00:00
c313a177b4
Patch which introduces a target-independent framework for generating hardware loops at the IR level. Most of the code has been taken from PowerPC CTRLoops and PowerPC has been ported over to use this generic pass. The target dependent parts have been moved into TargetTransformInfo, via isHardwareLoopProfitable, with HardwareLoopInfo introduced to transfer information from the backend. Three generic intrinsics have been introduced: - void @llvm.set_loop_iterations Takes as a single operand, the number of iterations to be executed. - i1 @llvm.loop_decrement(anyint) Takes the maximum number of elements processed in an iteration of the loop body and subtracts this from the total count. Returns false when the loop should exit. - anyint @llvm.loop_decrement_reg(anyint, anyint) Takes the number of elements remaining to be processed as well as the maximum numbe of elements processed in an iteration of the loop body. Returns the updated number of elements remaining. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362774 91177308-0d34-0410-b5e6-96231b3b80d8 |
||
---|---|---|
.. | ||
AnalysisWrappers.cpp | ||
BreakpointPrinter.cpp | ||
BreakpointPrinter.h | ||
CMakeLists.txt | ||
Debugify.cpp | ||
Debugify.h | ||
GraphPrinters.cpp | ||
LLVMBuild.txt | ||
NewPMDriver.cpp | ||
NewPMDriver.h | ||
opt.cpp | ||
PassPrinters.cpp | ||
PassPrinters.h | ||
PrintSCC.cpp |