IntegerDivision.h revision d2014649e0fc3c630c7530f6da060618c789d78d
1//===- llvm/Transforms/Utils/IntegerDivision.h ------------------*- C++ -*-===//
2//
3//                     The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file contains an implementation of 32bit integer division for targets
11// that don't have native support. It's largely derived from compiler-rt's
12// implementation of __udivsi3, but hand-tuned for targets that prefer less
13// control flow.
14//
15//===----------------------------------------------------------------------===//
16
17#ifndef TRANSFORMS_UTILS_INTEGERDIVISION_H
18#define TRANSFORMS_UTILS_INTEGERDIVISION_H
19
20namespace llvm {
21
22  bool expandDivision(BinaryOperator* Div);
23
24} // End llvm namespace
25
26#endif
27