LLVM 20.0.0git
Classes | Namespaces | Macros | Enumerations | Functions | Variables
PredicateInfo.cpp File Reference
#include "llvm/Transforms/Utils/PredicateInfo.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DepthFirstIterator.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/IR/AssemblyAnnotationWriter.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/PatternMatch.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/DebugCounter.h"
#include "llvm/Support/FormattedStream.h"
#include <algorithm>

Go to the source code of this file.

Classes

struct  llvm::ValueDFS
 
struct  llvm::ValueDFS_Compare
 
class  llvm::PredicateInfoBuilder
 
class  llvm::PredicateInfoAnnotatedWriter
 An assembly annotator class to print PredicateInfo information in comments. More...
 

Namespaces

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

Macros

#define DEBUG_TYPE   "predicateinfo"
 

Enumerations

enum  llvm::LocalNum { llvm::LN_First , llvm::LN_Middle , llvm::LN_Last }
 

Functions

 DEBUG_COUNTER (RenameCounter, "predicateinfo-rename", "Controls which variables are renamed with predicateinfo")
 
static bool llvm::valueComesBefore (const Value *A, const Value *B)
 
bool llvm::shouldRename (Value *V)
 
void llvm::collectCmpOps (CmpInst *Comparison, SmallVectorImpl< Value * > &CmpOperands)
 
static void llvm::replaceCreatedSSACopys (PredicateInfo &PredInfo, Function &F)
 

Variables

static cl::opt< boolVerifyPredicateInfo ("verify-predicateinfo", cl::init(false), cl::Hidden, cl::desc("Verify PredicateInfo in legacy printer pass."))
 
static const unsigned MaxCondsPerBranch = 8
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "predicateinfo"

Definition at line 31 of file PredicateInfo.cpp.

Function Documentation

◆ DEBUG_COUNTER()

DEBUG_COUNTER ( RenameCounter  ,
"predicateinfo-rename"  ,
"Controls which variables are renamed with predicateinfo"   
)

Variable Documentation

◆ MaxCondsPerBranch

const unsigned MaxCondsPerBranch = 8
static

Definition at line 43 of file PredicateInfo.cpp.

◆ VerifyPredicateInfo

cl::opt< bool > VerifyPredicateInfo("verify-predicateinfo", cl::init(false), cl::Hidden, cl::desc("Verify PredicateInfo in legacy printer pass.")) ( "verify-predicateinfo"  ,
cl::init(false)  ,
cl::Hidden  ,
cl::desc("Verify PredicateInfo in legacy printer pass.")   
)
static