LLVM
15.0.0git
|
#include "AMDGPU.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/IR/Constants.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"
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 indirect 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... | |
#define DEBUG_TYPE "amdgpu-lower-enqueued-block" |
Definition at line 44 of file AMDGPUOpenCLEnqueuedBlockLowering.cpp.
Collect direct or indirect callers of F
and save them to Callers
.
Definition at line 77 of file AMDGPUOpenCLEnqueuedBlockLowering.cpp.
References F, and llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert().
Referenced by collectFunctionUsers().
If U
is instruction or constant, collect functions which directly or indirectly use it.
Definition at line 89 of file AMDGPUOpenCLEnqueuedBlockLowering.cpp.
References collectCallers(), F, I, llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), and llvm::Value::users().
INITIALIZE_PASS | ( | AMDGPUOpenCLEnqueuedBlockLowering | , |
DEBUG_TYPE | , | ||
"Lower OpenCL enqueued blocks" | , | ||
false | , | ||
false | |||
) |
Definition at line 68 of file AMDGPUOpenCLEnqueuedBlockLowering.cpp.