22 #define DEBUG_TYPE "hexagontti"
26 cl::desc(
"Control lookup table emission on Hexagon target"));
42 return vector ? 0 : 32;
55 auto isCastFoldedIntoLoad = [](
const CastInst *CI) ->
bool {
56 if (!CI->isIntegerCast())
67 unsigned SBW = CI->getSrcTy()->getIntegerBitWidth();
68 unsigned DBW = CI->getDestTy()->getIntegerBitWidth();
69 return DBW == 32 && (SBW < DBW);
72 if (
const CastInst *CI = dyn_cast<const CastInst>(U))
73 if (isCastFoldedIntoLoad(CI))
unsigned getCacheLineSize() const
The main scalar evolution driver.
An instruction for reading from memory.
This is the base class for all instructions that perform data casts.
unsigned getL1CacheLineSize() const
unsigned getPrefetchDistance() const
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
initializer< Ty > init(const Ty &Val)
bool shouldBuildLookupTables() const
unsigned getL1PrefetchDistance() const
int getUserCost(const User *U, ArrayRef< const Value * > Operands)
unsigned getNumberOfRegisters(bool vector) const
Represents a single loop in the control flow graph.
bool hasOneUse() const
Return true if there is exactly one user of this value.
LLVM_NODISCARD std::enable_if<!is_simple_type< Y >::value, typename cast_retty< X, const Y >::ret_type >::type dyn_cast(const Y &Val)
void getUnrollingPreferences(Loop *L, ScalarEvolution &SE, TTI::UnrollingPreferences &UP)
TTI::PopcntSupportKind getPopcntSupport(unsigned IntTyWidthInBit) const