17 return TTI.getInstructionCost(LLVMI, Operands, CostKind);
21 auto Cost = getCost(
I);
39 return std::make_unique<RegionWithScore>(
F.getContext(),
TTI);
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
A sandboxir::User with operands, opcode and linked with previous/next instructions in an instruction ...
static SmallVector< std::unique_ptr< RegionWithScore > > createRegionsFromMD(Function &F, const TargetTransformInfo &TTI)
static SmallVector< std::unique_ptr< RegionT > > createRegionsFromMD(Function &F, RegionFactoryT Factory)
LLVM_ABI void remove(Instruction *I)
Mark I as a deleted instruction from the region.
LLVM_DUMP_METHOD void dump() const
LLVM_ABI raw_ostream & dbgs()
dbgs() - This returns a reference to a raw_ostream for debugging messages.
class LLVM_GSL_OWNER SmallVector
Forward declaration of SmallVector so that calculateSmallVectorDefaultInlinedElements can reference s...
decltype(auto) cast(const From &Val)
cast<X> - Return the argument parameter cast to the specified type.