[llvm-commits] CVS: llvm/tools/llvmc/class.in
Alkis Evlogimenos
alkis at cs.uiuc.edu
Wed Dec 8 10:30:22 PST 2004
Changes in directory llvm/tools/llvmc:
class.in added (r1.1)
---
Log message:
Add first try on a class -> llvm configuration file for llvmc.
---
Diffs of the changes: (+67 -0)
Index: llvm/tools/llvmc/class.in
diff -c /dev/null llvm/tools/llvmc/class.in:1.1
*** /dev/null Wed Dec 8 12:30:21 2004
--- llvm/tools/llvmc/class.in Wed Dec 8 12:30:11 2004
***************
*** 0 ****
--- 1,67 ----
+ # Java Configuration File For llvmc
+
+ ##########################################################
+ # Language definitions
+ ##########################################################
+ lang.name=Java
+ lang.opt1=-simplifycfg -mem2reg -instcombine
+ lang.opt2=
+ lang.opt3=
+ lang.opt4=
+ lang.opt5=
+ lang.libs=@LLVM_OBJ_ROOT@/projects/Java/Debug/lib
+
+ ##########################################################
+ # Pre-processor definitions
+ ##########################################################
+
+ # Java doesn't have a preprocessor but the following
+ # allows the -E option to be supported
+ preprocessor.command=cp %in% %out%
+ preprocessor.required=false
+
+ ##########################################################
+ # Translator definitions
+ ##########################################################
+
+ # To compile java class files, we just run the
+ # class2llvm compiler with the correct classpath.
+ translator.command=\
+ @LLVM_OBJ_ROOT@/projects/Java/Debug/binclass2llvm \
+ %in% %force% -o %out% %time% %stats% %args%
+
+ # class2llvm doesn't preprocess but we set this to true
+ # so that we don't run the cp command by default.
+ translator.preprocesses=true
+
+ # The translator is required to run.
+ translator.required=true
+
+ # class2llvm outputs llvm bytecode
+ translator.output=bytecode
+
+ ##########################################################
+ # Optimizer definitions
+ ##########################################################
+
+ # For optimization, we use the LLVM "opt" program
+ optimizer.command=@LLVM_BINDIR@/opt \
+ %in% %force% -o %out% %opt% %time% %stats% %args%
+
+ optimizer.required = true
+
+ # opt doesn't translate
+ optimizer.translates=false
+
+ # opt doesn't preprocess
+ optimizer.preprocesses=false
+
+ # opt produces bytecode
+ optimizer.output=bytecode
+
+ ##########################################################
+ # Assembler definitions
+ ##########################################################
+ assembler.command=\
+ @LLVM_BINDIR@/llc \
+ %in% %force% -o %out% %target% %time% %stats% %args%
More information about the llvm-commits
mailing list