LLVM API Documentation
#include "llvm/CodeGen/MachineFunction.h"#include "llvm/ADT/STLExtras.h"#include "llvm/ADT/SmallString.h"#include "llvm/Analysis/ConstantFolding.h"#include "llvm/CodeGen/MachineConstantPool.h"#include "llvm/CodeGen/MachineFrameInfo.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineInstr.h"#include "llvm/CodeGen/MachineJumpTableInfo.h"#include "llvm/CodeGen/MachineModuleInfo.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/CodeGen/Passes.h"#include "llvm/IR/DataLayout.h"#include "llvm/IR/DebugInfo.h"#include "llvm/IR/Function.h"#include "llvm/MC/MCAsmInfo.h"#include "llvm/MC/MCContext.h"#include "llvm/Support/Debug.h"#include "llvm/Support/GraphWriter.h"#include "llvm/Support/raw_ostream.h"#include "llvm/Target/TargetFrameLowering.h"#include "llvm/Target/TargetLowering.h"#include "llvm/Target/TargetMachine.h"#include "llvm/Target/TargetSubtargetInfo.h"
Go to the source code of this file.
Classes | |
| struct | llvm::DOTGraphTraits< const MachineFunction * > |
Namespaces | |
| namespace | llvm |
List of target independent CodeGen pass IDs. | |
Defines | |
| #define | DEBUG_TYPE "codegen" |
Functions | |
| static unsigned | clampStackAlignment (bool ShouldClamp, unsigned Align, unsigned StackAlign) |
| clampStackAlignment - Clamp the alignment if requested and emit a warning. | |
| static bool | CanShareConstantPoolEntry (const Constant *A, const Constant *B, const DataLayout *TD) |
| #define DEBUG_TYPE "codegen" |
Definition at line 42 of file MachineFunction.cpp.
| static bool CanShareConstantPoolEntry | ( | const Constant * | A, |
| const Constant * | B, | ||
| const DataLayout * | TD | ||
| ) | [static] |
CanShareConstantPoolEntry - Test whether the given two constants can be allocated the same constant pool entry.
Definition at line 888 of file MachineFunction.cpp.
References llvm::ConstantFoldInstOperands(), llvm::IntegerType::get(), llvm::Value::getContext(), llvm::Value::getType(), and llvm::DataLayout::getTypeStoreSize().
Referenced by llvm::MachineConstantPool::getConstantPoolIndex().
| static unsigned clampStackAlignment | ( | bool | ShouldClamp, |
| unsigned | Align, | ||
| unsigned | StackAlign | ||
| ) | [inline, static] |
clampStackAlignment - Clamp the alignment if requested and emit a warning.
Definition at line 504 of file MachineFunction.cpp.
References Align(), llvm::dbgs(), and DEBUG.
Referenced by llvm::MachineFrameInfo::CreateFixedObject(), llvm::MachineFrameInfo::CreateFixedSpillStackObject(), llvm::MachineFrameInfo::CreateSpillStackObject(), llvm::MachineFrameInfo::CreateStackObject(), and llvm::MachineFrameInfo::CreateVariableSizedObject().