LLVM 22.0.0git
NVPTXTagInvariantLoads.cpp File Reference

Go to the source code of this file.

Functions

static bool isInvariantLoad (const Instruction *I, const Value *Ptr, const bool IsKernelFn)
static void markLoadsAsInvariant (Instruction *I)
static bool tagInvariantLoads (Function &F)
 INITIALIZE_PASS (NVPTXTagInvariantLoadLegacyPass, "nvptx-tag-invariant-loads", "NVPTX Tag Invariant Loads", false, false) bool NVPTXTagInvariantLoadLegacyPass

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( NVPTXTagInvariantLoadLegacyPass ,
"nvptx-tag-invariant-loads" ,
"NVPTX Tag Invariant Loads" ,
false ,
false  )

Definition at line 93 of file NVPTXTagInvariantLoads.cpp.

References F, runOnFunction(), and tagInvariantLoads().

◆ isInvariantLoad()

◆ markLoadsAsInvariant()

void markLoadsAsInvariant ( Instruction * I)
static

Definition at line 57 of file NVPTXTagInvariantLoads.cpp.

References llvm::MDNode::get(), and I.

Referenced by tagInvariantLoads().

◆ tagInvariantLoads()