LLVM 24.0.0git
IR2Vec.cpp File Reference

This file implements the IR2Vec algorithm. More...

#include "llvm/Analysis/IR2Vec.h"
#include "AnalysisOptions.h"
#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/Sequence.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/IR/CFG.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PassManager.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/IR/Instruction.def"

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::json

Macros

#define DEBUG_TYPE   "ir2vec"
#define HANDLE_INST(NUM, OPCODE, CLASS)

Functions

 STATISTIC (VocabMissCounter, "Number of lookups to entities not present in the vocabulary")
bool llvm::json::fromJSON (const llvm::json::Value &E, Embedding &Out, llvm::json::Path P)

Detailed Description

This file implements the IR2Vec algorithm.

Definition in file IR2Vec.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "ir2vec"

Definition at line 34 of file IR2Vec.cpp.

◆ HANDLE_INST

#define HANDLE_INST ( NUM,
OPCODE,
CLASS )
Value:
if (Opcode == NUM) { \
return #OPCODE; \
}

Function Documentation

◆ STATISTIC()

STATISTIC ( VocabMissCounter ,
"Number of lookups to entities not present in the vocabulary"  )