LLVM API Documentation

Classes | Namespaces | Functions
CalcSpillWeights.h File Reference
#include "llvm/ADT/DenseMap.h"
#include "llvm/CodeGen/SlotIndexes.h"
Include dependency graph for CalcSpillWeights.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::VirtRegAuxInfo
 Calculate auxiliary information for a virtual register such as its spill weight and allocation hint. More...

Namespaces

namespace  llvm
 

List of target independent CodeGen pass IDs.


Functions

static float llvm::normalizeSpillWeight (float UseDefFreq, unsigned Size)
 Normalize the spill weight of a live interval.
void llvm::calculateSpillWeightsAndHints (LiveIntervals &LIS, MachineFunction &MF, const MachineLoopInfo &MLI, const MachineBlockFrequencyInfo &MBFI, VirtRegAuxInfo::NormalizingFn norm=normalizeSpillWeight)
 Compute spill weights and allocation hints for all virtual register live intervals.