LLVM
3.7.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
work
release_test
rc4
llvm.src
lib
Target
PowerPC
PPCMachineFunctionInfo.cpp
Go to the documentation of this file.
1
//===-- PPCMachineFunctionInfo.cpp - Private data used for PowerPC --------===//
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
#include "
PPCMachineFunctionInfo.h
"
11
#include "
llvm/IR/DataLayout.h
"
12
#include "
llvm/MC/MCContext.h
"
13
#include "
llvm/Target/TargetMachine.h
"
14
#include "
llvm/Target/TargetSubtargetInfo.h
"
15
16
using namespace
llvm;
17
18
void
PPCFunctionInfo::anchor() { }
19
20
MCSymbol
*
PPCFunctionInfo::getPICOffsetSymbol
()
const
{
21
const
DataLayout
*
DL
= MF.
getTarget
().
getDataLayout
();
22
return
MF.
getContext
().
getOrCreateSymbol
(
Twine
(DL->
getPrivateGlobalPrefix
()) +
23
Twine
(MF.
getFunctionNumber
()) +
24
"$poff"
);
25
}
TargetSubtargetInfo.h
llvm::DataLayout
A parsed version of the target data layout string in and methods for querying it. ...
Definition:
DataLayout.h:104
MCContext.h
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition:
MCSymbol.h:39
DataLayout.h
TargetMachine.h
llvm::DataLayout::getPrivateGlobalPrefix
const char * getPrivateGlobalPrefix() const
Definition:
DataLayout.h:281
llvm::MachineFunction::getFunctionNumber
unsigned getFunctionNumber() const
getFunctionNumber - Return a unique ID for the current function.
Definition:
MachineFunction.h:171
llvm::PDB_RegisterId::DL
PPCMachineFunctionInfo.h
llvm::Twine
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition:
Twine.h:79
llvm::MachineFunction::getContext
MCContext & getContext() const
Definition:
MachineFunction.h:156
llvm::TargetMachine::getDataLayout
const DataLayout * getDataLayout() const
Deprecated in 3.7, will be removed in 3.8.
Definition:
Target/TargetMachine.h:132
llvm::MCContext::getOrCreateSymbol
MCSymbol * getOrCreateSymbol(const Twine &Name)
Lookup the symbol inside with the specified Name.
Definition:
MCContext.cpp:111
llvm::MachineFunction::getTarget
const TargetMachine & getTarget() const
getTarget - Return the target machine this machine code is compiled with
Definition:
MachineFunction.h:175
llvm::PPCFunctionInfo::getPICOffsetSymbol
MCSymbol * getPICOffsetSymbol() const
Definition:
PPCMachineFunctionInfo.cpp:20
Generated on Mon Aug 31 2015 11:06:01 for LLVM by
1.8.6