|
LLVM 24.0.0git
|
#include "ARMTargetTransformInfo.h"#include "ARMSubtarget.h"#include "MCTargetDesc/ARMAddressingModes.h"#include "llvm/ADT/APInt.h"#include "llvm/ADT/SmallVector.h"#include "llvm/Analysis/LoopInfo.h"#include "llvm/CodeGen/CostTable.h"#include "llvm/CodeGen/ISDOpcodes.h"#include "llvm/CodeGen/ValueTypes.h"#include "llvm/CodeGenTypes/MachineValueType.h"#include "llvm/IR/BasicBlock.h"#include "llvm/IR/DataLayout.h"#include "llvm/IR/DerivedTypes.h"#include "llvm/IR/Instruction.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/Intrinsics.h"#include "llvm/IR/IntrinsicsARM.h"#include "llvm/IR/PatternMatch.h"#include "llvm/IR/Type.h"#include "llvm/Support/Casting.h"#include "llvm/Support/KnownBits.h"#include "llvm/Target/TargetMachine.h"#include "llvm/TargetParser/SubtargetFeature.h"#include "llvm/Transforms/InstCombine/InstCombiner.h"#include "llvm/Transforms/Utils/Local.h"#include "llvm/Transforms/Utils/LoopUtils.h"#include "llvm/Transforms/Vectorize/LoopVectorizationLegality.h"#include <algorithm>#include <cassert>#include <cstdint>#include <optional>#include <utility>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. | |
| #define DEBUG_TYPE "armtti" |
Definition at line 45 of file ARMTargetTransformInfo.cpp.
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().
|
static |
Definition at line 2407 of file ARMTargetTransformInfo.cpp.
References llvm::dyn_cast(), I, II, and llvm::isa().
Referenced by canTailPredicateLoop().
|
static |
Definition at line 2458 of file ARMTargetTransformInfo.cpp.
References canTailPredicateInstruction(), llvm::dbgs(), DL, llvm::dyn_cast(), llvm::EnabledNoReductions, llvm::findDefsUsedOutsideOfLoop(), llvm::ForceEnabledNoReductions, llvm::getLoadStorePointerOperand(), llvm::getLoadStoreType(), llvm::LoopAccessInfo::getPSE(), llvm::getPtrStride(), llvm::ScalarEvolution::getSCEV(), llvm::PredicatedScalarEvolution::getSE(), I, llvm::isa(), llvm::ScalarEvolution::isLoopInvariant(), LLVM_DEBUG, and T.
Referenced by llvm::ARMTTIImpl::preferTailFoldingOverEpilogue().
|
static |
Definition at line 361 of file ARMTargetTransformInfo.cpp.
References FP, llvm::APInt::getHighBitsSet(), llvm::Value::hasOneUse(), Imm, llvm::isa(), isSSATMinMaxPattern(), and llvm::Instruction::user_begin().
Referenced by llvm::ARMTTIImpl::getIntImmCostInst().
|
static |
Definition at line 327 of file ARMTargetTransformInfo.cpp.
References C(), llvm::cast(), llvm::SelectPatternResult::Flavor, llvm::User::getOperand(), llvm::ConstantInt::getValue(), llvm::Value::hasNUses(), Imm, llvm::isa(), LHS, llvm::PatternMatch::m_ConstantInt(), llvm::PatternMatch::match(), llvm::matchSelectPattern(), RHS, llvm::SPF_SMAX, llvm::SPF_SMIN, and llvm::Instruction::user_begin().
Referenced by llvm::ARMTTIImpl::getIntImmCostInst(), and isFPSatMinMaxPattern().
|
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().