LLVM  14.0.0git
Macros | Functions
AMDGPUOpenCLEnqueuedBlockLowering.cpp File Reference
#include "AMDGPU.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Mangler.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"
Include dependency graph for AMDGPUOpenCLEnqueuedBlockLowering.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "amdgpu-lower-enqueued-block"
 

Functions

 INITIALIZE_PASS (AMDGPUOpenCLEnqueuedBlockLowering, DEBUG_TYPE, "Lower OpenCL enqueued blocks", false, false) ModulePass *llvm
 
static void collectCallers (Function *F, DenseSet< Function * > &Callers)
 Collect direct or indrect callers of F and save them to Callers. More...
 
static void collectFunctionUsers (User *U, DenseSet< Function * > &Funcs)
 If U is instruction or constant, collect functions which directly or indirectly use it. More...
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "amdgpu-lower-enqueued-block"

Definition at line 43 of file AMDGPUOpenCLEnqueuedBlockLowering.cpp.

Function Documentation

◆ collectCallers()

static void collectCallers ( Function F,
DenseSet< Function * > &  Callers 
)
static

Collect direct or indrect callers of F and save them to Callers.

Definition at line 76 of file AMDGPUOpenCLEnqueuedBlockLowering.cpp.

References F, and llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert().

Referenced by collectFunctionUsers().

◆ collectFunctionUsers()

static void collectFunctionUsers ( User U,
DenseSet< Function * > &  Funcs 
)
static

If U is instruction or constant, collect functions which directly or indirectly use it.

Definition at line 88 of file AMDGPUOpenCLEnqueuedBlockLowering.cpp.

References collectCallers(), F, I, llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), and llvm::Value::users().

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( AMDGPUOpenCLEnqueuedBlockLowering  ,
DEBUG_TYPE  ,
"Lower OpenCL enqueued blocks"  ,
false  ,
false   
)

Definition at line 67 of file AMDGPUOpenCLEnqueuedBlockLowering.cpp.