Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Transforms/IPO/IROutliner.cpp
Show First 20 Lines • Show All 1,602 Lines • ▼ Show 20 Lines | static void findCanonNumsForPHI( | ||||
} | } | ||||
} | } | ||||
/// Find, or add PHINode \p PN to the combined PHINode Block \p OverallPHIBlock | /// Find, or add PHINode \p PN to the combined PHINode Block \p OverallPHIBlock | ||||
/// in order to condense the number of instructions added to the outlined | /// in order to condense the number of instructions added to the outlined | ||||
/// function. | /// function. | ||||
/// | /// | ||||
/// \param PN [in] - The PHINode that we are finding the canonical numbers for. | /// \param PN [in] - The PHINode that we are finding the canonical numbers for. | ||||
/// \param Region [in] - The OutlinableRegion containing \p PN. | /// \param Region [in] - The OutlinableRegion containing \p PN. | ||||
/// \param OverallPhiBlock [in] - The overall PHIBlock we are trying to find | /// \param OverallPhiBlock [in] - The overall PHIBlock we are trying to find | ||||
/// \p PN in. | /// \p PN in. | ||||
/// \param OutputMappings [in] - The mapping of output values from outlined | /// \param OutputMappings [in] - The mapping of output values from outlined | ||||
/// region to their original values. | /// region to their original values. | ||||
/// \param UsedPhis [in, out] - The PHINodes in the block that have already been | /// \param UsedPHIs [in, out] - The PHINodes in the block that have already been | ||||
/// matched. | /// matched. | ||||
/// \return the newly found or created PHINode in \p OverallPhiBlock. | /// \return the newly found or created PHINode in \p OverallPhiBlock. | ||||
static PHINode* | static PHINode* | ||||
findOrCreatePHIInBlock(PHINode &PN, OutlinableRegion &Region, | findOrCreatePHIInBlock(PHINode &PN, OutlinableRegion &Region, | ||||
BasicBlock *OverallPhiBlock, | BasicBlock *OverallPhiBlock, | ||||
const DenseMap<Value *, Value *> &OutputMappings, | const DenseMap<Value *, Value *> &OutputMappings, | ||||
DenseSet<PHINode *> &UsedPHIs) { | DenseSet<PHINode *> &UsedPHIs) { | ||||
OutlinableGroup &Group = *Region.Parent; | OutlinableGroup &Group = *Region.Parent; | ||||
▲ Show 20 Lines • Show All 1,402 Lines • Show Last 20 Lines |