You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
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
AsmParser
Disassembler
InstPrinter
MCTargetDesc
TargetInfo
CMakeLists.txt
LLVMBuild.txt
Lanai.h
Lanai.td
LanaiAluCode.h
LanaiAsmPrinter.cpp
LanaiCallingConv.td
LanaiCondCode.h
LanaiDelaySlotFiller.cpp
LanaiFrameLowering.cpp
LanaiFrameLowering.h
LanaiISelDAGToDAG.cpp
LanaiISelLowering.cpp
LanaiISelLowering.h
LanaiInstrFormats.td
LanaiInstrInfo.cpp
LanaiInstrInfo.h
LanaiInstrInfo.td
LanaiMCInstLower.cpp
LanaiMCInstLower.h
LanaiMachineFunctionInfo.cpp
LanaiMachineFunctionInfo.h
LanaiMemAluCombiner.cpp
LanaiRegisterInfo.cpp
LanaiRegisterInfo.h
LanaiRegisterInfo.td
LanaiSchedule.td
LanaiSelectionDAGInfo.cpp
LanaiSelectionDAGInfo.h
LanaiSubtarget.cpp
LanaiSubtarget.h
LanaiTargetMachine.cpp
LanaiTargetMachine.h
LanaiTargetObjectFile.cpp
LanaiTargetObjectFile.h
LanaiTargetTransformInfo.h
MSP430
Mips
NVPTX
Nios2
PowerPC
RISCV
Sparc
SystemZ
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
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
libgc
llvm
m4
man
mcs
mk
mono
msvc
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
48 lines
1.6 KiB
C++
48 lines
1.6 KiB
C++
![]() |
//===- LanaiSubtarget.cpp - Lanai Subtarget Information -----------*- C++ -*-=//
|
||
|
//
|
||
|
// The LLVM Compiler Infrastructure
|
||
|
//
|
||
|
// This file is distributed under the University of Illinois Open Source
|
||
|
// License. See LICENSE.TXT for details.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
//
|
||
|
// This file implements the Lanai specific subclass of TargetSubtarget.
|
||
|
//
|
||
|
//===----------------------------------------------------------------------===//
|
||
|
|
||
|
#include "LanaiSubtarget.h"
|
||
|
|
||
|
#include "Lanai.h"
|
||
|
|
||
|
#define DEBUG_TYPE "lanai-subtarget"
|
||
|
|
||
|
#define GET_SUBTARGETINFO_TARGET_DESC
|
||
|
#define GET_SUBTARGETINFO_CTOR
|
||
|
#include "LanaiGenSubtargetInfo.inc"
|
||
|
|
||
|
using namespace llvm;
|
||
|
|
||
|
void LanaiSubtarget::initSubtargetFeatures(StringRef CPU, StringRef FS) {
|
||
|
std::string CPUName = CPU;
|
||
|
if (CPUName.empty())
|
||
|
CPUName = "generic";
|
||
|
|
||
|
ParseSubtargetFeatures(CPUName, FS);
|
||
|
}
|
||
|
|
||
|
LanaiSubtarget &LanaiSubtarget::initializeSubtargetDependencies(StringRef CPU,
|
||
|
StringRef FS) {
|
||
|
initSubtargetFeatures(CPU, FS);
|
||
|
return *this;
|
||
|
}
|
||
|
|
||
|
LanaiSubtarget::LanaiSubtarget(const Triple &TargetTriple, StringRef Cpu,
|
||
|
StringRef FeatureString, const TargetMachine &TM,
|
||
|
const TargetOptions & /*Options*/,
|
||
|
CodeModel::Model /*CodeModel*/,
|
||
|
CodeGenOpt::Level /*OptLevel*/)
|
||
|
: LanaiGenSubtargetInfo(TargetTriple, Cpu, FeatureString),
|
||
|
FrameLowering(initializeSubtargetDependencies(Cpu, FeatureString)),
|
||
|
InstrInfo(), TLInfo(TM, *this), TSInfo() {}
|