We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 571181b commit a5ce547Copy full SHA for a5ce547
llvm/lib/Analysis/KernelInfo.cpp
@@ -28,6 +28,8 @@ using namespace llvm;
28
29
#define DEBUG_TYPE "kernel-info"
30
31
+namespace {
32
+
33
/// Data structure holding function info for kernels.
34
class KernelInfo {
35
void updateForBB(const BasicBlock &BB, int64_t Direction,
@@ -75,6 +77,8 @@ class KernelInfo {
75
77
int64_t FlatAddrspaceAccesses = 0;
76
78
};
79
80
+} // end anonymous namespace
81
82
static bool isKernelFunction(Function &F) {
83
// TODO: Is this general enough? Consider languages beyond OpenMP.
84
return F.hasFnAttribute("kernel");
0 commit comments