Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
patmos-llvm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWAN
patmos-llvm
Commits
e05de0e9
Commit
e05de0e9
authored
12 years ago
by
Stefan Hepp
Browse files
Options
Downloads
Patches
Plain Diff
Unified Readme files
parent
baa27859
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
README.md
+4
-0
4 additions, 0 deletions
README.md
README.patmos
+109
-0
109 additions, 0 deletions
README.patmos
README.txt
+2
-24
2 additions, 24 deletions
README.txt
TODO.patmos
+0
-0
0 additions, 0 deletions
TODO.patmos
test/CodeGen/Patmos/.gitignore
+2
-0
2 additions, 0 deletions
test/CodeGen/Patmos/.gitignore
with
117 additions
and
24 deletions
README.md
0 → 100644
+
4
−
0
View file @
e05de0e9
patmos-llvm
===========
Port of LLVM to the Patmos architecture of the T-CREST project.
This diff is collapsed.
Click to expand it.
README.patmos
0 → 100644
+
109
−
0
View file @
e05de0e9
LLVM FOR PATMOS
This is LLVM for Patmos, the time predictable processor of the T-CREST project.
--------------------------------------------------------------------------------
1. Requirements
- Clang for Patmos
https://github.com/t-crest/patmos-clang
Required to compile .c files to bitcode files (with the proper data layout
for Patmos).
You need to checkout patmos-clang as tools/clang subdirectory of this
repository (symlinks will not work!) to build clang as part of the Patmos
toolchain.
You can (currently) omit this step, if you only need to compile .ll or .bc
files.
- cmake 2.8 or higher (optional for llvm and clang, required for compiler-rt)
- graphviz (optional, for debugging)
For Debian or Ubuntu, you may need to install the following packages:
cmake
g++ glibc-dev-i386
texinfo
flex bison
libelf-dev
graphviz
To build the simulator, you also need the following packages (version >= 1.46):
libboost-dev, libboost-program-options-dev
--------------------------------------------------------------------------------
2. Configure and build
TODO - configure or cmake/cmake-gui
mkdir ../patmos-llvm-obj
cd ../patmos-llvm-obj
../patmos-llvm/configure --disable-optimized --enable-assertions
--enable-targets=host,patmos
--------------------------------------------------------------------------------
3. Use it
TODO - compile with llc and clang, install gold, newlib and compiler-rt first.
Have fun!
--------------------------------------------------------------------------------
Appendix - Additional Information
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
A) Patmos Backend Documentation
For more information about the Patmos backend (ELF file format, assembler
syntax, ...) please refer to lib/Target/Patmos/README.txt.
--------------------------------------------------------------------------------
B) Toolchain
TODO - describe
- pasim - Patmos Simulator
- compiler-rt, and NewLib for Patmos
https://github.com/t-crest/patmos-compiler-rt
https://github.com/t-crest/patmos-newlib
patmos-newlib and patmos-compiler-rt into separate directories, for libc and
runtime libraries
- patmos-gold for the linker
https://github.com/t-crest/patmos-gold
clang looks for patmos-gold in the PATH and the clang
install directory. To specify the linker executable to use for clang, set the
PATMOS_GOLD environment variable to the linker filename.
See the README files in the various repositories for information on how to build
them.
TODO - complete list of all compile instructions (?)
--------------------------------------------------------------------------------
C) Eclipse Setup
TODO
This diff is collapsed.
Click to expand it.
README.txt
+
2
−
24
View file @
e05de0e9
Low Level Virtual Machine (LLVM)
- Patmos Development Branch
================================
============================
Low Level Virtual Machine (LLVM)
================================
This directory and its subdirectories contain source code for the Low Level
Virtual Machine, a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.
This repository contains the LLVM backend for the Patmos processor.
LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.
...
...
@@ -17,23 +15,3 @@ assistance with LLVM.
If you're writing a package for LLVM, see docs/Packaging.html for our
suggestions.
Toolchain
---------
For more information about the Patmos backend (ELF file format, ..), please refer to
lib/Target/Patmos/README.txt
From the github.com/t-crest organization, you need to check out the following
additional repositories:
- patmos-clang as tools/clang for the C frontend
- patmos-newlib and patmos-compiler-rt into separate directories, for libc and
runtime libraries
- patmos-gold for the linker; clang looks for patmos-gold in the PATH and the clang
install directory. To specify the linker executable to use for clang, set the
PATMOS_GOLD environment variable to the linker filename.
See the README files in the various repositories for information on how to build
them.
This diff is collapsed.
Click to expand it.
TODO.
P
atmos
→
TODO.
p
atmos
+
0
−
0
View file @
e05de0e9
File moved
This diff is collapsed.
Click to expand it.
test/CodeGen/Patmos/.gitignore
+
2
−
0
View file @
e05de0e9
*.dis
*.elf
*.log
*.ll
*.s
*.o
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment