Skip to content

Commit

Permalink
[lanai] Add Lanai backend.
Browse files Browse the repository at this point in the history
Add the Lanai backend to lib/Target.

General Lanai backend discussion on llvm-dev thread "[RFC] Lanai backend" (http://lists.llvm.org/pipermail/llvm-dev/2016-February/095118.html).

Differential Revision: http://reviews.llvm.org/D17011



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264578 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
jpienaar committed Mar 28, 2016
1 parent 01605e4 commit cf0b01d
Show file tree
Hide file tree
Showing 87 changed files with 12,430 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CODE_OWNERS.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ N: Krzysztof Parzyszek
E: [email protected]
D: Hexagon Backend

N: Jacques Pienaar
E: [email protected]
D: Lanai Backend

N: Paul Robinson
E: [email protected]
D: Sony PlayStation®4 support
Expand Down
4 changes: 4 additions & 0 deletions lib/ObjectYAML/ELFYAML.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ ScalarEnumerationTraits<ELFYAML::ELF_EM>::enumeration(IO &IO,
ECase(EM_78KOR)
ECase(EM_56800EX)
ECase(EM_AMDGPU)
ECase(EM_LANAI)
#undef ECase
}

Expand Down Expand Up @@ -527,6 +528,9 @@ void ScalarEnumerationTraits<ELFYAML::ELF_REL>::enumeration(
case ELF::EM_ARM:
#include "llvm/Support/ELFRelocs/ARM.def"
break;
case ELF::EM_LANAI:
#include "llvm/Support/ELFRelocs/Lanai.def"
break;
default:
llvm_unreachable("Unsupported architecture");
}
Expand Down
1 change: 1 addition & 0 deletions lib/Target/LLVMBuild.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ subdirectories =
AVR
BPF
CppBackend
Lanai
Hexagon
MSP430
NVPTX
Expand Down
7 changes: 7 additions & 0 deletions lib/Target/Lanai/AsmParser/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )

add_llvm_library(LLVMLanaiAsmParser
LanaiAsmParser.cpp
)

add_dependencies( LLVMLanaiAsmParser LanaiCommonTableGen )
23 changes: 23 additions & 0 deletions lib/Target/Lanai/AsmParser/LLVMBuild.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
;===- ./lib/Target/Lanai/AsmParser/LLVMBuild.txt ----------------*- Conf -*-===;
;
; The LLVM Compiler Infrastructure
;
; This file is distributed under the University of Illinois Open Source
; License. See LICENSE.TXT for details.
;
;===------------------------------------------------------------------------===;
;
; This is an LLVMBuild description file for the components in this subdirectory.
;
; For more information on the LLVMBuild system, please see:
;
; http://llvm.org/docs/LLVMBuild.html
;
;===------------------------------------------------------------------------===;

[component_0]
type = Library
name = LanaiAsmParser
parent = Lanai
required_libraries = MC MCParser Support LanaiMCTargetDesc LanaiInfo
add_to_library_groups = Lanai
Loading

0 comments on commit cf0b01d

Please sign in to comment.