LLVM
15.0.0git
|
#include "llvm/Transforms/Scalar/ScalarizeMaskedMemIntrin.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Analysis/DomTreeUpdater.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constant.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Value.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Support/Casting.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include <cassert>
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "scalarize-masked-mem-intrin" |
Variables | |
DEBUG_TYPE | |
Scalarize unsupported masked memory | intrinsics |
Scalarize unsupported masked memory | false |
#define DEBUG_TYPE "scalarize-masked-mem-intrin" |
Definition at line 41 of file ScalarizeMaskedMemIntrin.cpp.
|
static |
Definition at line 105 of file ScalarizeMaskedMemIntrin.cpp.
References DL.
Referenced by scalarizeMaskedCompressStore(), scalarizeMaskedExpandLoad(), scalarizeMaskedGather(), scalarizeMaskedLoad(), scalarizeMaskedScatter(), and scalarizeMaskedStore().
INITIALIZE_PASS_BEGIN | ( | ScalarizeMaskedMemIntrinLegacyPass | , |
DEBUG_TYPE | , | ||
"Scalarize unsupported masked memory intrinsics" | , | ||
false | , | ||
false | |||
) |
|
static |
Definition at line 90 of file ScalarizeMaskedMemIntrin.cpp.
References llvm::Constant::getAggregateElement(), i, and llvm::BitmaskEnumDetail::Mask().
Referenced by scalarizeMaskedCompressStore(), scalarizeMaskedExpandLoad(), scalarizeMaskedGather(), scalarizeMaskedLoad(), scalarizeMaskedScatter(), and scalarizeMaskedStore().
|
static |
Definition at line 908 of file ScalarizeMaskedMemIntrin.cpp.
References BB, DL, and optimizeCallInst().
Referenced by runImpl().
|
static |
Definition at line 924 of file ScalarizeMaskedMemIntrin.cpp.
References llvm::any_of(), llvm::CallBase::args(), DL, llvm::TargetTransformInfo::forceScalarizeMaskedGather(), llvm::TargetTransformInfo::forceScalarizeMaskedScatter(), llvm::CallBase::getArgOperand(), llvm::IntrinsicInst::getIntrinsicID(), llvm::Type::getScalarType(), llvm::Value::getType(), llvm::TargetTransformInfo::isLegalMaskedCompressStore(), llvm::TargetTransformInfo::isLegalMaskedExpandLoad(), llvm::TargetTransformInfo::isLegalMaskedGather(), llvm::TargetTransformInfo::isLegalMaskedLoad(), llvm::TargetTransformInfo::isLegalMaskedScatter(), llvm::TargetTransformInfo::isLegalMaskedStore(), scalarizeMaskedCompressStore(), scalarizeMaskedExpandLoad(), scalarizeMaskedGather(), scalarizeMaskedLoad(), scalarizeMaskedScatter(), and scalarizeMaskedStore().
Referenced by optimizeBlock().
|
static |
Definition at line 862 of file ScalarizeMaskedMemIntrin.cpp.
References BB, DL, llvm::Optional< T >::emplace(), F, llvm::Optional< T >::getPointer(), llvm::Optional< T >::hasValue(), llvm::DomTreeUpdater::Lazy, llvm::make_early_inc_range(), and optimizeBlock().
Referenced by llvm::ScalarizeMaskedMemIntrinPass::run().
|
static |
Definition at line 759 of file ScalarizeMaskedMemIntrin.cpp.
References llvm::PHINode::addIncoming(), adjustForEndian(), Align, llvm::BasicBlock::begin(), Builder, DL, llvm::Instruction::eraseFromParent(), llvm::CallBase::getArgOperand(), llvm::Value::getContext(), llvm::Instruction::getDebugLoc(), llvm::APInt::getOneBitSet(), llvm::Instruction::getParent(), llvm::Instruction::getSuccessor(), llvm::BasicBlock::getTerminator(), llvm::Value::getType(), isConstantIntVector(), llvm::BitmaskEnumDetail::Mask(), llvm::M68k::MemIndex, llvm::Value::setName(), and llvm::SplitBlockAndInsertIfThen().
Referenced by optimizeCallInst().
|
static |
Definition at line 632 of file ScalarizeMaskedMemIntrin.cpp.
References llvm::PHINode::addIncoming(), adjustForEndian(), Align, llvm::BasicBlock::begin(), Builder, DL, llvm::Instruction::eraseFromParent(), llvm::UndefValue::get(), llvm::CallBase::getArgOperand(), llvm::Value::getContext(), llvm::Instruction::getDebugLoc(), llvm::APInt::getOneBitSet(), llvm::Instruction::getParent(), llvm::Instruction::getSuccessor(), llvm::BasicBlock::getTerminator(), llvm::Value::getType(), isConstantIntVector(), llvm::SPII::Load, llvm::BitmaskEnumDetail::Mask(), llvm::M68k::MemIndex, llvm::Value::replaceAllUsesWith(), llvm::Value::setName(), llvm::SplitBlockAndInsertIfThen(), and llvm::UndefMaskElem.
Referenced by optimizeCallInst().
|
static |
Definition at line 412 of file ScalarizeMaskedMemIntrin.cpp.
References llvm::PHINode::addIncoming(), adjustForEndian(), llvm::BasicBlock::begin(), Builder, DL, llvm::Instruction::eraseFromParent(), llvm::CallBase::getArgOperand(), llvm::Value::getContext(), llvm::Instruction::getDebugLoc(), llvm::APInt::getOneBitSet(), llvm::Instruction::getParent(), llvm::Instruction::getSuccessor(), llvm::BasicBlock::getTerminator(), llvm::Value::getType(), isConstantIntVector(), llvm::SPII::Load, llvm::BitmaskEnumDetail::Mask(), llvm::Value::replaceAllUsesWith(), llvm::Value::setName(), and llvm::SplitBlockAndInsertIfThen().
Referenced by optimizeCallInst().
|
static |
Definition at line 142 of file ScalarizeMaskedMemIntrin.cpp.
References llvm::PHINode::addIncoming(), adjustForEndian(), llvm::BasicBlock::begin(), Builder, llvm::commonAlignment(), DL, llvm::Instruction::eraseFromParent(), llvm::CallBase::getArgOperand(), llvm::Value::getContext(), llvm::Instruction::getDebugLoc(), llvm::APInt::getOneBitSet(), llvm::Instruction::getParent(), llvm::Type::getPointerAddressSpace(), llvm::Type::getPointerTo(), llvm::Type::getPrimitiveSizeInBits(), llvm::Instruction::getSuccessor(), llvm::BasicBlock::getTerminator(), llvm::Value::getType(), isConstantIntVector(), llvm::SPII::Load, llvm::BitmaskEnumDetail::Mask(), llvm::Value::replaceAllUsesWith(), llvm::Value::setName(), and llvm::SplitBlockAndInsertIfThen().
Referenced by optimizeCallInst().
|
static |
Definition at line 542 of file ScalarizeMaskedMemIntrin.cpp.
References adjustForEndian(), assert(), llvm::BasicBlock::begin(), Builder, DL, llvm::Instruction::eraseFromParent(), llvm::CallBase::getArgOperand(), llvm::Value::getContext(), llvm::Instruction::getDebugLoc(), llvm::APInt::getOneBitSet(), llvm::Instruction::getParent(), llvm::Instruction::getSuccessor(), llvm::BasicBlock::getTerminator(), llvm::Value::getType(), isConstantIntVector(), llvm::BitmaskEnumDetail::Mask(), llvm::Value::setName(), and llvm::SplitBlockAndInsertIfThen().
Referenced by optimizeCallInst().
|
static |
Definition at line 284 of file ScalarizeMaskedMemIntrin.cpp.
References adjustForEndian(), llvm::BasicBlock::begin(), Builder, llvm::commonAlignment(), DL, llvm::Instruction::eraseFromParent(), llvm::CallBase::getArgOperand(), llvm::Value::getContext(), llvm::Instruction::getDebugLoc(), llvm::APInt::getOneBitSet(), llvm::Instruction::getParent(), llvm::Type::getPointerAddressSpace(), llvm::Type::getPointerTo(), llvm::Type::getPrimitiveSizeInBits(), llvm::Instruction::getSuccessor(), llvm::BasicBlock::getTerminator(), llvm::Value::getType(), isConstantIntVector(), llvm::BitmaskEnumDetail::Mask(), llvm::Value::setName(), and llvm::SplitBlockAndInsertIfThen().
Referenced by optimizeCallInst().
DEBUG_TYPE |
Definition at line 82 of file ScalarizeMaskedMemIntrin.cpp.
Scalarize unsupported masked memory false |
Definition at line 83 of file ScalarizeMaskedMemIntrin.cpp.
Scalarize unsupported masked memory intrinsics |
Definition at line 83 of file ScalarizeMaskedMemIntrin.cpp.