Options that control how the hardware‐loops pass inserts loop intrinsics.

Synopsis

Declared in <llvm/CodeGen/HardwareLoops.h>

struct HardwareLoopOptions;

Member Functions

Name

Description

getForceGuard

Return whether a hardware‐loop guard intrinsic is forced.

getForceNested

Return whether nested hardware loops are forced.

getForcePhi

Return whether a phi‐updated hardware‐loop counter is forced.

setCounterBitwidth

Set the hardware‐loop counter bit width to Width.

setDecrement

Set the hardware‐loop decrement amount to Count.

setForce

Set whether hardware‐loop insertion is forced regardless of profitability.

setForceGuard

Set whether a hardware‐loop guard intrinsic must be generated.

setForceNested

Set whether nested hardware loops are forced to be considered.

setForcePhi

Set whether the hardware‐loop counter must be updated through a phi.

Data Members

Name

Description

Bitwidth

Optional bit width of the hardware loop counter type.

Decrement

Optional per‐iteration decrement applied to the hardware loop counter.

Force

When set, force hardware‐loop intrinsics even if the target declines.

ForceGuard

When set, force generation of a hardware‐loop guard intrinsic.

ForceNested

When set, allow nested hardware loops even if nesting is not profitable.

ForcePhi

When set, force the loop counter to be updated through a phi.

Created with MrDocs