Skip to content
  1. Dec 13, 2007
  2. Sep 18, 2007
    • Gordon Henriksen's avatar
      Adding ocaml language bindings for the vmcore and bitwriter libraries. These are · 37582f74
      Gordon Henriksen authored
      built atop the C language bindings, and user programs can link with them as 
      such:
      
        # Bytecode
        ocamlc -cc g++ llvm.cma llvmbitwriter.cma -o example example.ml
        # Native
        ocamlopt -cc g++ llvm.cmxa llvmbitwriter.cmxa -o example.opt example.ml
      
      The vmcore.ml test exercises most/all of the APIs thus far bound. Unfortunately,
      they're not yet numerous enough to write hello world. But:
      
        $ cat example.ml
        (* example.ml *)
        
        open Llvm
        open Llvm_bitwriter
        
        let _ =
          let filename = Sys.argv.(1) in
          let m = create_module filename in
          
          let v = make_int_constant i32_type 42 false in
          let g = define_global "hello_world" v m in
          
          if not (write_bitcode_file m filename) then exit 1;
          
          dispose_module m;
      
        $ ocamlc -cc g++ llvm.cma llvm_bitwriter.cma -o example example.ml
        File "example.ml", line 11, characters 6-7:
        Warning Y: unused variable g.
        $ ./example example.bc
        $ llvm-dis < example.bc
        ; ModuleID = '<stdin>'
        @hello_world = global i32 42            ; <i32*> [#uses=0]
      
      The ocaml test cases provide effective tests for the C interfaces.
      
      llvm-svn: 42093
      37582f74
  3. Jul 12, 2007
    • David Greene's avatar
      · b2e2be4b
      David Greene authored
      Get rid of annoying spaces.
      
      llvm-svn: 39766
      b2e2be4b
  4. Jul 08, 2007
  5. Apr 15, 2007
  6. Mar 29, 2007
  7. Feb 21, 2007
  8. Feb 06, 2007
  9. Feb 05, 2007
  10. Nov 17, 2006
  11. Sep 04, 2006
  12. Aug 16, 2006
  13. Jul 26, 2006
  14. Jun 03, 2006
  15. Jun 01, 2006
  16. May 18, 2006
    • Reid Spencer's avatar
      Make some changes suggested by Chris: · a22a5b38
      Reid Spencer authored
      1. Remove the LLVM_DO_NOT_BUILD feature (not needed any more)
      2. Ensure that lib/VMCore gets built first. This needs to be done because
         VMCore now uses tblgen to generate the Intrinsics header which are
         needed in other libraries. In parallel builds, this can cause problems.
      
      llvm-svn: 28374
      a22a5b38
  17. Apr 12, 2006
  18. Apr 08, 2006
    • Reid Spencer's avatar
      Fix recursion: · 8ac50626
      Reid Spencer authored
      1. Make setting OPTIONAL_DIRS use immediate assignment
      2. Include Makefile.config before ifeq tests and then Makefile.rules later
         instead of Makefile.common up front. This ensures that the variable
         values are set before the ifeq statements in Makefile.rules are
         evaluated.
      With this, recursion into projects/examples is corrected.
      
      llvm-svn: 27519
      8ac50626
    • Reid Spencer's avatar
      Don't build projects/examples if libs-only was specified. · 4b22fdc9
      Reid Spencer authored
      llvm-svn: 27518
      4b22fdc9
  19. Apr 07, 2006
  20. Aug 25, 2005
    • Reid Spencer's avatar
      For PR614: · 53846bcd
      Reid Spencer authored
      Move the implementation of the fix from Makefile.rules to Makefile. This
      ensures that it is only checked on a top-level rebuild, and not in every
      single subdirectory. This removes some annoying messages from the build and
      numerous executions of config.status if the .in file changes but not
      substantively enough to cause the .h file to be modified by config.status.
      
      llvm-svn: 23039
      53846bcd
  21. May 29, 2005
  22. May 25, 2005
  23. May 24, 2005
    • Reid Spencer's avatar
      Two dist-check related changes: · 13f5193f
      Reid Spencer authored
      1. Allow DIST_CHECK_CONFIG_OPTION to specify a set of options to be passed
         to the configure script during the dist-check target. This allows things
         to be passed down on a project basis so the configure doesn't fail.
      
      2. Use the tar | (cd ; tar ) idiom to copy files which is more flexible
         than using the cp command. THis allows us to exclude CVS .svn
         directories at source rather than stripping them out of the tar ball.
      
      llvm-svn: 22166
      13f5193f
  24. Dec 06, 2004
  25. Dec 04, 2004
  26. Nov 29, 2004
  27. Nov 25, 2004
  28. Nov 08, 2004
  29. Nov 07, 2004
Loading