LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
Mips16ISelLowering.cpp File Reference
#include "Mips16ISelLowering.h"
#include "MipsRegisterInfo.h"
#include "MipsTargetMachine.h"
#include "MCTargetDesc/MipsBaseInfo.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Target/TargetInstrInfo.h"
Include dependency graph for Mips16ISelLowering.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "mips-lower"
 
#define P_   "__mips16_call_stub_"
 
#define MAX_STUB_NUMBER   10
 
#define T1   P "1", P "2", 0, 0, P "5", P "6", 0, 0, P "9", P "10"
 
#define T   P "0" , T1
 
#define P   P_
 
#define P   P_ "sf_"
 
#define P   P_ "df_"
 
#define P   P_ "sc_"
 
#define P   P_ "dc_"
 

Functions

static unsigned Mips16WhichOp8uOr16simm (unsigned shortOp, unsigned longOp, int64_t Imm)
 

Variables

static cl::opt< boolDontExpandCondPseudos16 ("mips16-dont-expand-cond-pseudo", cl::init(false), cl::desc("Dont expand conditional move related ""pseudos for Mips 16"), cl::Hidden)
 
static const Mips16Libcall HardFloatLibCalls []
 
static const
Mips16IntrinsicHelperType 
Mips16IntrinsicHelper []
 
static char const * vMips16Helper [MAX_STUB_NUMBER+1]
 
static char const * sfMips16Helper [MAX_STUB_NUMBER+1]
 
static char const * dfMips16Helper [MAX_STUB_NUMBER+1]
 
static char const * scMips16Helper [MAX_STUB_NUMBER+1]
 
static char const * dcMips16Helper [MAX_STUB_NUMBER+1]
 

Macro Definition Documentation

#define DEBUG_TYPE   "mips-lower"

Definition at line 13 of file Mips16ISelLowering.cpp.

#define MAX_STUB_NUMBER   10

Definition at line 347 of file Mips16ISelLowering.cpp.

#define P   P_

Definition at line 366 of file Mips16ISelLowering.cpp.

#define P   P_ "sf_"

Definition at line 366 of file Mips16ISelLowering.cpp.

#define P   P_ "df_"

Definition at line 366 of file Mips16ISelLowering.cpp.

#define P   P_ "sc_"

Definition at line 366 of file Mips16ISelLowering.cpp.

#define P   P_ "dc_"

Definition at line 366 of file Mips16ISelLowering.cpp.

#define P_   "__mips16_call_stub_"

Definition at line 346 of file Mips16ISelLowering.cpp.

#define T   P "0" , T1

Definition at line 349 of file Mips16ISelLowering.cpp.

Referenced by llvm::ImutIntervalAVLFactory< llvm::ImutIntervalInfo< ValT > >::Add(), llvm::ImmutableMap< KeyT, ValT, ValInfo >::Factory::add(), llvm::ImutAVLFactory< ImutInfo >::add(), llvm::BumpPtrAllocator::Allocate(), BinomialCoefficient(), llvm::BitsToDouble(), llvm::APInt::bitsToDouble(), llvm::BitsToFloat(), llvm::APInt::bitsToFloat(), llvm::ConstantFoldBinaryInstruction(), llvm::SmallPtrSetImpl::CopyFrom(), llvm::ImutAVLFactory< ImutInfo >::createNode(), createPPCMCCodeGenInfo(), createX86MCCodeGenInfo(), llvm::SpecificBumpPtrAllocator< T >::DestroyAll(), llvm::AsmPrinter::doFinalization(), llvm::DoubleToBits(), llvm::APInt::doubleToBits(), llvm::DwarfDebug::DwarfDebug(), llvm::PointerUnion< EltTy, llvm::SmallVector * >::dyn_cast(), llvm::PointerUnion3< PT1, PT2, PT3 >::dyn_cast(), llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::dyn_cast(), llvm::AsmPrinter::EmitFunctionBody(), llvm::AsmPrinter::EmitFunctionHeader(), llvm::ImutIntervalAVLFactory< llvm::ImutIntervalInfo< ValT > >::Find(), llvm::FloatToBits(), llvm::APInt::floatToBits(), llvm::PointerUnion3< PT1, PT2, PT3 >::get(), llvm::ConstantStruct::get(), llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::get(), llvm::Triple::get32BitArchVariant(), llvm::Triple::get64BitArchVariant(), llvm::ImutAVLFactory< ImutInfo >::getCanonicalTree(), llvm::GraphTraits< Type * >::getEntryNode(), llvm::GraphTraits< const Type * >::getEntryNode(), llvm::ImutAVLTree< ImutInfo >::getMaxElement(), llvm::DIRef< T >::getName(), getNamedRegionTimer(), getTypeString(), llvm::PackedVectorBase< T, BitNum, BitVectorTy, false >::getValue(), llvm::PackedVectorBase< T, BitNum, BitVectorTy, true >::getValue(), llvm::yaml::Node::getVerbatimTag(), llvm::APIntOps::GreatestCommonDivisor(), llvm::GreatestCommonDivisor64(), indexReallyValid(), llvm::MCObjectFileInfo::InitMCObjectFileInfo(), llvm::SmallVectorImpl< std::pair< int, int64_t > >::insert(), llvm::PointerUnion< EltTy, llvm::SmallVector * >::is(), llvm::PointerUnion3< PT1, PT2, PT3 >::is(), llvm::PointerUnion4< PT1, PT2, PT3, PT4 >::is(), llvm::ImutAVLFactory< ImutInfo >::isEmpty(), LowerCMP_SWAP(), llvm::PatternMatch::m_Br(), llvm::SmallVectorTemplateCommon< std::pair< int, int64_t > >::max_size(), llvm::NVPTXSubtarget::NVPTXSubtarget(), llvm::Optional< std::pair< std::string, int > >::operator=(), llvm::Optional< std::pair< std::string, int > >::Optional(), llvm::ParseIR(), llvm::TimerGroup::print(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), reduceToSingleValueType(), llvm::TargetRegistry::RegisterTarget(), llvm::ImmutableMap< KeyT, ValT, ValInfo >::Factory::remove(), llvm::ImutAVLFactory< ImutInfo >::remove(), llvm::ImutAVLFactory< ImutInfo >::remove_internal(), llvm::ImutAVLFactory< ImutInfo >::removeMinBinding(), llvm::SmallVectorImpl< std::pair< int, int64_t > >::resize(), llvm::DIRef< T >::resolve(), llvm::APIntOps::RoundDoubleToAPInt(), llvm::APInt::roundToDouble(), llvm::MachineFrameInfo::setFrameAddressIsTaken(), llvm::Module::setTargetTriple(), llvm::PMDataManager::setTopLevelManager(), llvm::PackedVectorBase< T, BitNum, BitVectorTy, false >::setValue(), llvm::PackedVectorBase< T, BitNum, BitVectorTy, true >::setValue(), llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::uninitialized_move(), llvm::visitAll(), and WriteTypeTable().

#define T1   P "1", P "2", 0, 0, P "5", P "6", 0, 0, P "9", P "10"

Function Documentation

static unsigned Mips16WhichOp8uOr16simm ( unsigned  shortOp,
unsigned  longOp,
int64_t  Imm 
)
static

Variable Documentation

char const* dcMips16Helper[MAX_STUB_NUMBER+1]
static
Initial value:
=
{ T }

Definition at line 367 of file Mips16ISelLowering.cpp.

char const* dfMips16Helper[MAX_STUB_NUMBER+1]
static
Initial value:
=
{ T }

Definition at line 359 of file Mips16ISelLowering.cpp.

cl::opt<bool> DontExpandCondPseudos16("mips16-dont-expand-cond-pseudo", cl::init(false), cl::desc("Dont expand conditional move related ""pseudos for Mips 16"), cl::Hidden)
static
const Mips16Libcall HardFloatLibCalls[]
static

Definition at line 55 of file Mips16ISelLowering.cpp.

const Mips16IntrinsicHelperType Mips16IntrinsicHelper[]
static
Initial value:
= {
{"__fixunsdfsi", "__mips16_call_stub_2" },
{"ceil", "__mips16_call_stub_df_2"},
{"ceilf", "__mips16_call_stub_sf_1"},
{"copysign", "__mips16_call_stub_df_10"},
{"copysignf", "__mips16_call_stub_sf_5"},
{"cos", "__mips16_call_stub_df_2"},
{"cosf", "__mips16_call_stub_sf_1"},
{"exp2", "__mips16_call_stub_df_2"},
{"exp2f", "__mips16_call_stub_sf_1"},
{"floor", "__mips16_call_stub_df_2"},
{"floorf", "__mips16_call_stub_sf_1"},
{"log2", "__mips16_call_stub_df_2"},
{"log2f", "__mips16_call_stub_sf_1"},
{"nearbyint", "__mips16_call_stub_df_2"},
{"nearbyintf", "__mips16_call_stub_sf_1"},
{"rint", "__mips16_call_stub_df_2"},
{"rintf", "__mips16_call_stub_sf_1"},
{"sin", "__mips16_call_stub_df_2"},
{"sinf", "__mips16_call_stub_sf_1"},
{"sqrt", "__mips16_call_stub_df_2"},
{"sqrtf", "__mips16_call_stub_sf_1"},
{"trunc", "__mips16_call_stub_df_2"},
{"truncf", "__mips16_call_stub_sf_1"},
}

Definition at line 92 of file Mips16ISelLowering.cpp.

char const* scMips16Helper[MAX_STUB_NUMBER+1]
static
Initial value:
=
{ T }

Definition at line 363 of file Mips16ISelLowering.cpp.

char const* sfMips16Helper[MAX_STUB_NUMBER+1]
static
Initial value:
=
{ T }

Definition at line 355 of file Mips16ISelLowering.cpp.

char const* vMips16Helper[MAX_STUB_NUMBER+1]
static
Initial value:
=
{0, T1 }
#define T1

Definition at line 351 of file Mips16ISelLowering.cpp.