MLIR  19.0.0git
Classes | Namespaces | Functions
Fraction.h File Reference
#include "mlir/Analysis/Presburger/MPInt.h"
#include "mlir/Support/MathExtras.h"

Go to the source code of this file.

Classes

struct  mlir::presburger::Fraction
 A class to represent fractions. More...
 

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::presburger
 

Functions

int mlir::presburger::compare (const Fraction &x, const Fraction &y)
 Three-way comparison between two fractions. More...
 
MPInt mlir::presburger::floor (const Fraction &f)
 
MPInt mlir::presburger::ceil (const Fraction &f)
 
Fraction mlir::presburger::operator- (const Fraction &x)
 
bool mlir::presburger::operator< (const Fraction &x, const Fraction &y)
 
bool mlir::presburger::operator<= (const Fraction &x, const Fraction &y)
 
bool mlir::presburger::operator== (const Fraction &x, const Fraction &y)
 
bool mlir::presburger::operator!= (const Fraction &x, const Fraction &y)
 
bool mlir::presburger::operator> (const Fraction &x, const Fraction &y)
 
bool mlir::presburger::operator>= (const Fraction &x, const Fraction &y)
 
Fraction mlir::presburger::abs (const Fraction &f)
 
Fraction mlir::presburger::reduce (const Fraction &f)
 
Fraction mlir::presburger::operator* (const Fraction &x, const Fraction &y)
 
Fraction mlir::presburger::operator/ (const Fraction &x, const Fraction &y)
 
Fraction mlir::presburger::operator+ (const Fraction &x, const Fraction &y)
 
Fraction mlir::presburger::operator- (const Fraction &x, const Fraction &y)
 
MPInt mlir::presburger::round (const Fraction &f)
 
Fraction & mlir::presburger::operator+= (Fraction &x, const Fraction &y)
 
Fraction & mlir::presburger::operator-= (Fraction &x, const Fraction &y)
 
Fraction & mlir::presburger::operator/= (Fraction &x, const Fraction &y)
 
Fraction & mlir::presburger::operator*= (Fraction &x, const Fraction &y)
 
llvm::raw_ostream & mlir::presburger::operator<< (llvm::raw_ostream &os, const Fraction &x)