You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
clang-tools-extra
compiler-rt
eng
libcxx
libcxxabi
libunwind
lld
lldb
llvm
bindings
cmake
docs
examples
include
lib
Analysis
AsmParser
BinaryFormat
Bitcode
CodeGen
DebugInfo
Demangle
ExecutionEngine
FuzzMutate
Fuzzer
IR
IRReader
LTO
LineEditor
Linker
MC
Object
ObjectYAML
Option
Passes
ProfileData
Support
TableGen
Target
AArch64
AMDGPU
ARC
ARM
AVR
BPF
Hexagon
Lanai
MSP430
Mips
NVPTX
Nios2
PowerPC
RISCV
Sparc
SystemZ
AsmParser
Disassembler
InstPrinter
MCTargetDesc
TargetInfo
CMakeLists.txt
LLVMBuild.txt
README.txt
SystemZ.h
SystemZ.td
SystemZAsmPrinter.cpp
SystemZAsmPrinter.h
SystemZCallingConv.cpp
SystemZCallingConv.h
SystemZCallingConv.td
SystemZConstantPoolValue.cpp
SystemZConstantPoolValue.h
SystemZElimCompare.cpp
SystemZExpandPseudo.cpp
SystemZFeatures.td
SystemZFrameLowering.cpp
SystemZFrameLowering.h
SystemZHazardRecognizer.cpp
SystemZHazardRecognizer.h
SystemZISelDAGToDAG.cpp
SystemZISelLowering.cpp.REMOVED.git-id
SystemZISelLowering.h
SystemZInstrBuilder.h
SystemZInstrDFP.td
SystemZInstrFP.td
SystemZInstrFormats.td.REMOVED.git-id
SystemZInstrHFP.td
SystemZInstrInfo.cpp
SystemZInstrInfo.h
SystemZInstrInfo.td
SystemZInstrSystem.td
SystemZInstrVector.td
SystemZLDCleanup.cpp
SystemZLongBranch.cpp
SystemZMCInstLower.cpp
SystemZMCInstLower.h
SystemZMachineFunctionInfo.cpp
SystemZMachineFunctionInfo.h
SystemZMachineScheduler.cpp
SystemZMachineScheduler.h
SystemZOperands.td
SystemZOperators.td
SystemZPatterns.td
SystemZProcessors.td
SystemZRegisterInfo.cpp
SystemZRegisterInfo.h
SystemZRegisterInfo.td
SystemZSchedule.td
SystemZScheduleZ13.td
SystemZScheduleZ14.td
SystemZScheduleZ196.td
SystemZScheduleZEC12.td
SystemZSelectionDAGInfo.cpp
SystemZSelectionDAGInfo.h
SystemZShortenInst.cpp
SystemZSubtarget.cpp
SystemZSubtarget.h
SystemZTDC.cpp
SystemZTargetMachine.cpp
SystemZTargetMachine.h
SystemZTargetTransformInfo.cpp
SystemZTargetTransformInfo.h
WebAssembly
X86
XCore
CMakeLists.txt
LLVMBuild.txt
README.txt
Target.cpp
TargetIntrinsicInfo.cpp
TargetLoweringObjectFile.cpp
TargetMachine.cpp
TargetMachineC.cpp
Testing
ToolDrivers
Transforms
WindowsManifest
XRay
CMakeLists.txt
LLVMBuild.txt
projects
resources
runtimes
scripts
test
tools
unittests
utils
.arcconfig
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in
version.txt.in
nuget
openmp
polly
Directory.Build.props
Directory.Build.targets
NuGet.config
azure-pipelines.yml
build.cmd
build.sh
dir.common.props
global.json
llvm.proj
mxe-Win64.cmake.in
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
73 lines
2.9 KiB
C++
73 lines
2.9 KiB
C++
//===-- SystemZSubtarget.cpp - SystemZ subtarget information --------------===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "SystemZSubtarget.h"
|
|
#include "MCTargetDesc/SystemZMCTargetDesc.h"
|
|
#include "llvm/IR/GlobalValue.h"
|
|
|
|
using namespace llvm;
|
|
|
|
#define DEBUG_TYPE "systemz-subtarget"
|
|
|
|
#define GET_SUBTARGETINFO_TARGET_DESC
|
|
#define GET_SUBTARGETINFO_CTOR
|
|
#include "SystemZGenSubtargetInfo.inc"
|
|
|
|
// Pin the vtable to this file.
|
|
void SystemZSubtarget::anchor() {}
|
|
|
|
SystemZSubtarget &
|
|
SystemZSubtarget::initializeSubtargetDependencies(StringRef CPU, StringRef FS) {
|
|
std::string CPUName = CPU;
|
|
if (CPUName.empty())
|
|
CPUName = "generic";
|
|
// Parse features string.
|
|
ParseSubtargetFeatures(CPUName, FS);
|
|
return *this;
|
|
}
|
|
|
|
SystemZSubtarget::SystemZSubtarget(const Triple &TT, const std::string &CPU,
|
|
const std::string &FS,
|
|
const TargetMachine &TM)
|
|
: SystemZGenSubtargetInfo(TT, CPU, FS), HasDistinctOps(false),
|
|
HasLoadStoreOnCond(false), HasHighWord(false), HasFPExtension(false),
|
|
HasPopulationCount(false), HasMessageSecurityAssist3(false),
|
|
HasMessageSecurityAssist4(false), HasResetReferenceBitsMultiple(false),
|
|
HasFastSerialization(false), HasInterlockedAccess1(false),
|
|
HasMiscellaneousExtensions(false),
|
|
HasExecutionHint(false), HasLoadAndTrap(false),
|
|
HasTransactionalExecution(false), HasProcessorAssist(false),
|
|
HasDFPZonedConversion(false), HasEnhancedDAT2(false),
|
|
HasVector(false), HasLoadStoreOnCond2(false),
|
|
HasLoadAndZeroRightmostByte(false), HasMessageSecurityAssist5(false),
|
|
HasDFPPackedConversion(false),
|
|
HasMiscellaneousExtensions2(false), HasGuardedStorage(false),
|
|
HasMessageSecurityAssist7(false), HasMessageSecurityAssist8(false),
|
|
HasVectorEnhancements1(false), HasVectorPackedDecimal(false),
|
|
HasInsertReferenceBitsMultiple(false),
|
|
TargetTriple(TT), InstrInfo(initializeSubtargetDependencies(CPU, FS)),
|
|
TLInfo(TM, *this), TSInfo(), FrameLowering() {}
|
|
|
|
bool SystemZSubtarget::isPC32DBLSymbol(const GlobalValue *GV,
|
|
CodeModel::Model CM) const {
|
|
// PC32DBL accesses require the low bit to be clear. Note that a zero
|
|
// value selects the default alignment and is therefore OK.
|
|
if (GV->getAlignment() == 1)
|
|
return false;
|
|
|
|
// For the small model, all locally-binding symbols are in range.
|
|
if (CM == CodeModel::Small)
|
|
return TLInfo.getTargetMachine().shouldAssumeDSOLocal(*GV->getParent(), GV);
|
|
|
|
// For Medium and above, assume that the symbol is not within the 4GB range.
|
|
// Taking the address of locally-defined text would be OK, but that
|
|
// case isn't easy to detect.
|
|
return false;
|
|
}
|