Home | History | Annotate | Download | only in Scalar

Lines Matching full:float2int

1 //===- Float2Int.cpp - Demote floating point ops to work on integers ------===//
10 // This file implements the Float2Int pass, which aims to demote floating
15 #define DEBUG_TYPE "float2int"
51 MaxIntegerBW("float2int-max-integer-bw", cl::init(64), cl::Hidden,
52 cl::desc("Max integer bitwidth to consider in float2int"
56 struct Float2Int : public FunctionPass {
58 Float2Int() : FunctionPass(ID) {
87 char Float2Int::ID = 0;
88 INITIALIZE_PASS_BEGIN(Float2Int, "float2int", "Float to int", false, false)
90 INITIALIZE_PASS_END(Float2Int, "float2int", "Float to int", false, false)
132 void Float2Int::findRoots(Function &F, SmallPtrSet<Instruction*,8> &Roots) {
152 ConstantRange Float2Int::seen(Instruction *I, ConstantRange R) {
162 ConstantRange Float2Int::badRange() {
165 ConstantRange Float2Int::unknownRange() {
168 ConstantRange Float2Int::validateRange(ConstantRange R) {
188 void Float2Int::walkBackwards(const SmallPtrSetImpl<Instruction*> &Roots) {
249 void Float2Int::walkForwards() {
360 bool Float2Int::validateAndTransform() {
442 Value *Float2Int::convert(Instruction *I, Type *ToTy) {
514 void Float2Int::cleanup() {
519 bool Float2Int::runOnFunction(Function &F) {
543 FunctionPass *llvm::createFloat2IntPass() { return new Float2Int(); }