Insert an architecture‐specific instruction to clear a register. If you need to avoid sideeffects (e.g. avoid XOR on x86, which sets EFLAGS), set AllowSideEffects to false.

Synopsis

Declared in <llvm/CodeGen/TargetInstrInfo.h>

virtual
void
buildClearRegister(
    Register Reg,
    MachineBasicBlock& MBB,
    MachineBasicBlock::iterator Iter,
    DebugLoc& DL,
    bool AllowSideEffects = true) const;

Parameters

Name

Description

Reg

Wrapper class representing virtual and physical registers. Should be passed by value.

DL

A debug info location.

Created with MrDocs