13#ifndef LLVM_SUPPORT_DIVISIONBYCONSTANTINFO_H
14#define LLVM_SUPPORT_DIVISIONBYCONSTANTINFO_H
30 get(
const APInt &
D,
unsigned LeadingZeros = 0,
31 bool AllowEvenDivisorOptimization =
true);
This file implements a class to represent arbitrary precision integral constant values and operations...
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
Class for arbitrary precision integers.
This is an optimization pass for GlobalISel generic memory operations.
Magic data for optimising signed division by a constant.
unsigned ShiftAmount
shift amount
static SignedDivisionByConstantInfo get(const APInt &D)
Calculate the magic numbers required to implement a signed integer division by a constant as a sequen...
Magic data for optimising unsigned division by a constant.
unsigned PreShift
pre-shift amount
static UnsignedDivisionByConstantInfo get(const APInt &D, unsigned LeadingZeros=0, bool AllowEvenDivisorOptimization=true)
Calculate the magic numbers required to implement an unsigned integer division by a constant as a seq...
unsigned PostShift
post-shift amount