//===-- APInt.cpp - Implement APInt class ---------------------------------===////// The LLVM Compiler Infrastructure//// This file was developed by Sheng Zhou and Reid Spencer and is distributed // under the // University of Illinois Open Source License. See LICENSE.TXT // for details.////===----------------------------------------------------------------------===////// This file implements a class to represent arbitrary precision integer// constant values and provide a variety of arithmetic operations on them.////===----------------------------------------------------------------------===//#define DEBUG_TYPE "apint"#include"llvm/ADT/APInt.h"#include"llvm/DerivedTypes.h"#include"llvm/Support/Debug.h"#include"llvm/Support/MathExtras.h"#include<cstring>#include<cstdlib>#ifndef NDEBUG