llvm.org GIT mirror llvm / 18d52f2
Convert a bunch of uses of 'bytecode' into 'bitcode'. This is not everything, but the remaining cases are less trivial. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115080 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan Sands 8 years ago
10 changed file(s) with 16 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
3838 E: brukman+llvm@uiuc.edu
3939 W: http://misha.brukman.net
4040 D: Portions of X86 and Sparc JIT compilers, PowerPC backend
41 D: Incremental bytecode loader
41 D: Incremental bitcode loader
4242
4343 N: Cameron Buschardt
4444 E: buschard@uiuc.edu
248248
  • llvm/*
  • 249249
  • llvm/Analysis/*
  • 250250
  • llvm/Assembly/*
  • 251
  • llvm/Bytecode/*
  • 251
  • llvm/Bitcode/*
  • 252252
  • llvm/CodeGen/*
  • 253253
  • ...
  • 254254
  • Support/*
  • 33
    44 This project is an extremely simple example of using some simple pieces of the
    55 LLVM API. The actual executable generated by this project simply emits an
    6 LLVM bytecode file to standard output. It is designed to show some basic
    6 LLVM bitcode file to standard output. It is designed to show some basic
    77 usage of LLVM APIs, and how to link to LLVM libraries.
    196196 Typical components:
    197197 all All LLVM libraries (default).
    198198 backend Either a native backend or the C backend.
    199 engine Either a native JIT or a bytecode interpreter.
    199 engine Either a native JIT or a bitcode interpreter.
    200200 __EOD__
    201201 exit(1);
    202202 }
    66 # it from finding a problem unless the set of failing optimizations are
    77 # known and given to it on the command line.
    88 #
    9 # Given a bytecode file that produces correct output (or return code),
    9 # Given a bitcode file that produces correct output (or return code),
    1010 # this script will run through all the optimizations passes that gccas
    1111 # uses (in the same order) and will narrow down which optimizations
    1212 # cause the program either generate different output or return a
    2020 #
    2121 # Where:
    2222 # bcfile
    23 # is the bytecode file input (the unoptimized working case)
    23 # is the bitcode file input (the unoptimized working case)
    2424 # outdir
    2525 # is a directory into which intermediate results are placed
    2626 # progargs
    1313 # second build contains some experimental optimization features that
    1414 # are suspected of producing a misoptimization.
    1515 #
    16 # The script takes two bytecode files, one from each build. They are
    16 # The script takes two bitcode files, one from each build. They are
    1717 # presumed to be a compilation of the same program or program fragment
    1818 # with the only difference being the builds.
    1919 #
    3838 # llvm2
    3939 # is the path to the second llvm build dir
    4040 # bc1
    41 # is the bytecode file for the first llvm environment
    41 # is the bitcode file for the first llvm environment
    4242 # bc2
    43 # is the bytecode file for the second llvm environment
    43 # is the bitcode file for the second llvm environment
    4444 # filter1
    4545 # is an optional filter for filtering the llvm1 generated assembly
    4646 # filter2
    192192
    193193 llvm-native-gcc is a wrapper around the LLVM command-line tools which generates
    194194 a native object (.o) file by compiling FILE with llvm-gcc, and then running
    195 an LLVM back-end (CBE by default) over the resulting bytecode, and then
    195 an LLVM back-end (CBE by default) over the resulting bitcode, and then
    196196 compiling the resulting code to a native object file.
    197197
    198 If called as "native-build", it compiles bytecode to native code, and takes
    198 If called as "native-build", it compiles bitcode to native code, and takes
    199199 different options.
    200200
    201201 =head1 OPTIONS
    192192
    193193 llvm-native-g++ is a wrapper around the LLVM command-line tools which generates
    194194 a native object (.o) file by compiling FILE with llvm-g++, and then running
    195 an LLVM back-end (CBE by default) over the resulting bytecode, and then
    195 an LLVM back-end (CBE by default) over the resulting bitcode, and then
    196196 compiling the resulting code to a native object file.
    197197
    198 If called as "native-build", it compiles bytecode to native code, and takes
    198 If called as "native-build", it compiles bitcode to native code, and takes
    199199 different options.
    200200
    201201 =head1 OPTIONS
    44 # Synopsis: Insert instrumentation code into a program, run it with the JIT,
    55 # then print out a profile report.
    66 #
    7 # Syntax: profile.pl [OPTIONS] bytecodefile
    7 # Syntax: profile.pl [OPTIONS] bitcodefile
    88 #
    99 # OPTIONS may include one or more of the following:
    1010 # -block - Enable basicblock profiling
    5555 $LLVMProfOpts .= " " . $_;
    5656 }
    5757
    58 die "Must specify LLVM bytecode file as first argument!" if (@ARGV == 0);
    58 die "Must specify LLVM bitcode file as first argument!" if (@ARGV == 0);
    5959
    6060 my $BytecodeFile = $ARGV[0];
    6161