LLVM: lib/CodeGen/HardwareLoops.cpp File Reference (original) (raw)
Insert hardware loop intrinsics into loops which are deemed profitable by the target, by querying TargetTransformInfo. More...
Insert hardware loop intrinsics into loops which are deemed profitable by the target, by querying TargetTransformInfo.
A hardware loop comprises of two intrinsics: one, outside the loop, to set the loop iteration count and another, in the exit block, to decrement the counter. The decremented value can either be carried through the loop via a phi or handled in some opaque way by the target.
Definition in file HardwareLoops.cpp.