LLVM  14.0.0git
Namespaces | Macros | Functions | Variables
Float2Int.cpp File Reference
#include "llvm/InitializePasses.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Transforms/Scalar/Float2Int.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/Analysis/GlobalsModRef.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Transforms/Scalar.h"
#include <deque>
#include <functional>
Include dependency graph for Float2Int.cpp:

Go to the source code of this file.

Namespaces

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

Macros

#define DEBUG_TYPE   "float2int"
 

Functions

static CmpInst::Predicate mapFCmpPred (CmpInst::Predicate P)
 
static Instruction::BinaryOps mapBinOpcode (unsigned Opcode)
 
FunctionPassllvm::createFloat2IntPass ()
 

Variables

static cl::opt< unsigned > MaxIntegerBW ("float2int-max-integer-bw", cl::init(64), cl::Hidden, cl::desc("Max integer bitwidth to consider in float2int" "(default=64)"))
 The largest integer type worth dealing with. More...
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "float2int"

Definition at line 33 of file Float2Int.cpp.

Function Documentation

◆ mapBinOpcode()

static Instruction::BinaryOps mapBinOpcode ( unsigned  Opcode)
static

Definition at line 112 of file Float2Int.cpp.

References llvm::MCID::Add, and llvm_unreachable.

◆ mapFCmpPred()

static CmpInst::Predicate mapFCmpPred ( CmpInst::Predicate  P)
static

Variable Documentation

◆ MaxIntegerBW

cl::opt<unsigned> MaxIntegerBW("float2int-max-integer-bw", cl::init(64), cl::Hidden, cl::desc("Max integer bitwidth to consider in float2int" "(default=64)"))
static

The largest integer type worth dealing with.