LLVM 19.0.0git
Macros | Functions | Variables
Hello.cpp File Reference
#include "llvm/ADT/Statistic.h"
#include "llvm/IR/Function.h"
#include "llvm/Pass.h"
#include "llvm/Support/raw_ostream.h"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "hello"
 

Functions

 STATISTIC (HelloCounter, "Counts number of functions greeted")
 

Variables

static RegisterPass< Hello > X ("hello", "Hello World Pass")
 
static RegisterPass< Hello2 > Y ("hello2", "Hello World Pass (with getAnalysisUsage implemented)")
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "hello"

Definition at line 20 of file Hello.cpp.

Function Documentation

◆ STATISTIC()

STATISTIC ( HelloCounter  ,
"Counts number of functions greeted"   
)

Variable Documentation

◆ X

RegisterPass< Hello > X("hello", "Hello World Pass") ( "hello"  ,
"Hello World Pass"   
)
static

◆ Y

RegisterPass< Hello2 > Y("hello2", "Hello World Pass (with getAnalysisUsage implemented)") ( "hello2"  ,
"Hello World Pass (with getAnalysisUsage implemented)"   
)
static