LLVM 24.0.0git
ARMTargetTransformInfo.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "armtti"

Functions

static Value * simplifyNeonVld1 (const IntrinsicInst &II, unsigned MemAlign, InstCombiner::BuilderTy &Builder)
 Convert a vector load intrinsic into a simple llvm load instruction.
static Value * isSSATMinMaxPattern (Instruction *Inst, const APInt &Imm)
static bool isFPSatMinMaxPattern (Instruction *Inst, const APInt &Imm)
static bool canTailPredicateInstruction (Instruction &I, int &ICmpCount)
static bool canTailPredicateLoop (const ARMOptions &CLOpts, Loop *L, LoopInfo *LI, ScalarEvolution &SE, const DataLayout &DL, const LoopAccessInfo *LAI, const DominatorTree &DT)
static bool areExtractExts (Value *Ext1, Value *Ext2)
 Check if Ext1 and Ext2 are extends of the same type, doubling the bitwidth of the vector elements.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "armtti"

Definition at line 45 of file ARMTargetTransformInfo.cpp.

Function Documentation

◆ areExtractExts()

bool areExtractExts ( Value * Ext1,
Value * Ext2 )
static

Check if Ext1 and Ext2 are extends of the same type, doubling the bitwidth of the vector elements.

Definition at line 2810 of file ARMTargetTransformInfo.cpp.

References llvm::cast(), llvm::PatternMatch::m_Value(), llvm::PatternMatch::m_ZExtOrSExt(), and llvm::PatternMatch::match().

◆ canTailPredicateInstruction()

bool canTailPredicateInstruction ( Instruction & I,
int & ICmpCount )
static

Definition at line 2407 of file ARMTargetTransformInfo.cpp.

References llvm::dyn_cast(), I, II, and llvm::isa().

Referenced by canTailPredicateLoop().

◆ canTailPredicateLoop()

◆ isFPSatMinMaxPattern()

◆ isSSATMinMaxPattern()

◆ simplifyNeonVld1()

Value * simplifyNeonVld1 ( const IntrinsicInst & II,
unsigned MemAlign,
InstCombiner::BuilderTy & Builder )
static

Convert a vector load intrinsic into a simple llvm load instruction.

This is beneficial when the underlying object being addressed comes from a constant, since we get constant-folding for free.

Definition at line 50 of file ARMTargetTransformInfo.cpp.

References llvm::dyn_cast(), II, and llvm::isPowerOf2_32().

Referenced by llvm::ARMTTIImpl::instCombineIntrinsic().