clang 24.0.0git
CIRPointsToAnalysis.cpp File Reference
#include "clang/CIR/Dialect/Analysis/CIRPointsToAnalysis.h"
#include "mlir/IR/Remarks.h"
#include "clang/CIR/Dialect/IR/CIRDialect.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/TypeSwitch.h"
#include "llvm/Support/DebugLog.h"
#include <algorithm>

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "cir-points-to-analysis"

Functions

static llvm::StringRef getObjectName (mlir::Value object)
 The name used to print object: the name of the cir.alloca allocating it.
static mlir::remark::RemarkOpts getRemarkOpts (llvm::StringRef name, mlir::Operation *root, llvm::StringRef subCategory)
 The options of every remark emitted for the analysis of root.
static mlir::WalkResult walkNested (mlir::Operation *op, llvm::function_ref< mlir::WalkResult(mlir::Operation *)> callback)
 Walk the operations nested in op, without op itself.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "cir-points-to-analysis"

Definition at line 18 of file CIRPointsToAnalysis.cpp.

Function Documentation

◆ getObjectName()

llvm::StringRef getObjectName ( mlir::Value object)
static

The name used to print object: the name of the cir.alloca allocating it.

Definition at line 23 of file CIRPointsToAnalysis.cpp.

Referenced by cir::PointsToAnalysis::emitRemarks(), and cir::PointsToSet::print().

◆ getRemarkOpts()

mlir::remark::RemarkOpts getRemarkOpts ( llvm::StringRef name,
mlir::Operation * root,
llvm::StringRef subCategory )
static

The options of every remark emitted for the analysis of root.

Definition at line 29 of file CIRPointsToAnalysis.cpp.

Referenced by cir::PointsToAnalysis::emitRemarks().

◆ walkNested()

mlir::WalkResult walkNested ( mlir::Operation * op,
llvm::function_ref< mlir::WalkResult(mlir::Operation *)> callback )
static

Walk the operations nested in op, without op itself.

Definition at line 42 of file CIRPointsToAnalysis.cpp.