llvm::ScheduleDAGInstrs::addBarrierChain

Adds barrier-chain edges from all SUs in map, then clears the map.

Synopsis

Declared in <llvm/CodeGen/ScheduleDAGInstrs.h>

void
addBarrierChain(Value2SUsMap& map);

Description

This is equivalent to insertBarrierChain(), but optimized for the common case where the new BarrierChain (a global memory object) has a higher NodeNum than all SUs in map. It is assumed BarrierChain has been set before calling this.

Parameters

NameDescription
mapMap of memory values whose SUnits must order after the barrier.