LLVM 20.0.0git
Macros | Functions
NVPTXTargetTransformInfo.cpp File Reference
#include "NVPTXTargetTransformInfo.h"
#include "NVPTXUtilities.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/CodeGen/BasicTTIImpl.h"
#include "llvm/CodeGen/TargetLowering.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Intrinsics.h"
#include "llvm/IR/IntrinsicsNVPTX.h"
#include "llvm/IR/Value.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Transforms/InstCombine/InstCombiner.h"
#include <optional>

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "NVPTXtti"
 

Functions

static bool readsThreadIndex (const IntrinsicInst *II)
 
static bool readsLaneId (const IntrinsicInst *II)
 
static bool isNVVMAtomic (const IntrinsicInst *II)
 
static InstructionconvertNvvmIntrinsicToLlvm (InstCombiner &IC, IntrinsicInst *II)
 
static std::optional< boolevaluateIsSpace (Intrinsic::ID IID, unsigned AS)
 
static std::optional< Instruction * > handleSpaceCheckIntrinsics (InstCombiner &IC, IntrinsicInst &II)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "NVPTXtti"

Definition at line 27 of file NVPTXTargetTransformInfo.cpp.

Function Documentation

◆ convertNvvmIntrinsicToLlvm()

static Instruction * convertNvvmIntrinsicToLlvm ( InstCombiner IC,
IntrinsicInst II 
)
static

◆ evaluateIsSpace()

static std::optional< bool > evaluateIsSpace ( Intrinsic::ID  IID,
unsigned  AS 
)
static

◆ handleSpaceCheckIntrinsics()

static std::optional< Instruction * > handleSpaceCheckIntrinsics ( InstCombiner IC,
IntrinsicInst II 
)
static

◆ isNVVMAtomic()

static bool isNVVMAtomic ( const IntrinsicInst II)
static

Definition at line 45 of file NVPTXTargetTransformInfo.cpp.

References II.

Referenced by llvm::NVPTXTTIImpl::isSourceOfDivergence().

◆ readsLaneId()

static bool readsLaneId ( const IntrinsicInst II)
static

Definition at line 40 of file NVPTXTargetTransformInfo.cpp.

References II.

Referenced by llvm::NVPTXTTIImpl::isSourceOfDivergence().

◆ readsThreadIndex()

static bool readsThreadIndex ( const IntrinsicInst II)
static

Definition at line 30 of file NVPTXTargetTransformInfo.cpp.

References II.

Referenced by llvm::NVPTXTTIImpl::isSourceOfDivergence().