oota-llvm.git
20 years agoAdded LLVM notice.
John Criswell [Mon, 20 Oct 2003 19:46:57 +0000 (19:46 +0000)]
Added LLVM notice.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9300 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMade error message more comprehensible.
Misha Brukman [Mon, 20 Oct 2003 19:43:47 +0000 (19:43 +0000)]
Made error message more comprehensible.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9299 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdded LLVM project notice to the top of every C++ source file.
John Criswell [Mon, 20 Oct 2003 19:43:21 +0000 (19:43 +0000)]
Added LLVM project notice to the top of every C++ source file.
Header files will be on the way.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9298 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago"Function"[0] == 'F', not 'M'
Chris Lattner [Mon, 20 Oct 2003 19:10:06 +0000 (19:10 +0000)]
"Function"[0] == 'F', not 'M'

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9297 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUpdate release notes
Chris Lattner [Mon, 20 Oct 2003 19:05:03 +0000 (19:05 +0000)]
Update release notes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9296 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMinor leftover fixups from replaceMachineCodeForFunction () change.
Brian Gaeke [Mon, 20 Oct 2003 17:59:09 +0000 (17:59 +0000)]
Minor leftover fixups from replaceMachineCodeForFunction () change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9295 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agofix file header
Chris Lattner [Mon, 20 Oct 2003 17:58:43 +0000 (17:58 +0000)]
fix file header

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9294 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agofix file headers
Chris Lattner [Mon, 20 Oct 2003 17:57:13 +0000 (17:57 +0000)]
fix file headers

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9293 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix file header
Chris Lattner [Mon, 20 Oct 2003 17:52:11 +0000 (17:52 +0000)]
Fix file header

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9292 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdded copyright header to all C++ source files.
John Criswell [Mon, 20 Oct 2003 17:47:21 +0000 (17:47 +0000)]
Added copyright header to all C++ source files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9291 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMade the Requirements information its own major section and moved it
John Criswell [Mon, 20 Oct 2003 16:39:52 +0000 (16:39 +0000)]
Made the Requirements information its own major section and moved it
between the "Getting Started Quickly" and "Getting Started Slowly" sections.
:)
Removed some of the nit-picky requirements information (i.e. GNU tar and
GNU zip).
Attempted to compact the requirements information so that it is less scary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9290 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake replaceMachineCodeForFunction() return void.
Brian Gaeke [Mon, 20 Oct 2003 15:17:12 +0000 (15:17 +0000)]
Make replaceMachineCodeForFunction() return void.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9289 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake replaceMachineCodeForFunction return void.
Brian Gaeke [Mon, 20 Oct 2003 15:15:17 +0000 (15:15 +0000)]
Make replaceMachineCodeForFunction return void.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9288 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake replaceMachineCodeForFunction return void.
Brian Gaeke [Mon, 20 Oct 2003 15:14:33 +0000 (15:14 +0000)]
Make replaceMachineCodeForFunction return void.
Make it assert by default.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9287 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoApparently the dependencies are wrong for this file, so it didn't rebuild it
Chris Lattner [Mon, 20 Oct 2003 14:12:52 +0000 (14:12 +0000)]
Apparently the dependencies are wrong for this file, so it didn't rebuild it
when changing Instruction.def.  :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9286 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoReorder for minor efficiency gain
Chris Lattner [Mon, 20 Oct 2003 05:54:26 +0000 (05:54 +0000)]
Reorder for minor efficiency gain

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9285 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoEmit x86 instructions for: A = B op C, where A and B are 16-bit registers,
Chris Lattner [Mon, 20 Oct 2003 05:53:31 +0000 (05:53 +0000)]
Emit x86 instructions for: A = B op C, where A and B are 16-bit registers,
C is a constant which can be sign-extended from 8 bits without value loss,
and op is one of: add, sub, imul, and, or, xor.

This allows the JIT to emit the one byte version of the constant instead of
the two or 4 byte version.  Because these instructions are very common, this
can save a LOT of code space.  For example, I sampled two benchmarks, 176.gcc
and 254.gap.

BM        Old     New    Reduction
176.gcc 2673621 2548962  4.89%
254.gap  498261  475104  4.87%

Note that while the percentage is not spectacular, this did eliminate
124.6 _KILOBYTES_ of codespace from gcc.  Not bad.

Note that this doesn't effect the llc version at all, because the assembler
already does this optimization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9284 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoHrm, a relic from the past. How cute :)
Chris Lattner [Mon, 20 Oct 2003 05:45:49 +0000 (05:45 +0000)]
Hrm, a relic from the past.  How cute :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9283 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFurther cleanups and simplifications
Chris Lattner [Mon, 20 Oct 2003 04:48:06 +0000 (04:48 +0000)]
Further cleanups and simplifications

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9282 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoEliminate code for pointer size and endianness emulation.
Chris Lattner [Mon, 20 Oct 2003 04:11:23 +0000 (04:11 +0000)]
Eliminate code for pointer size and endianness emulation.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9281 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoThe Grammar Police was here.
Misha Brukman [Mon, 20 Oct 2003 04:03:10 +0000 (04:03 +0000)]
The Grammar Police was here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9280 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago* Fixed grammar in header
Misha Brukman [Mon, 20 Oct 2003 03:59:05 +0000 (03:59 +0000)]
* Fixed grammar in header
* Added description of `mem2reg'

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9279 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago* Rename X86::IMULr16 -> X86::IMULrr16
Chris Lattner [Mon, 20 Oct 2003 03:42:58 +0000 (03:42 +0000)]
* Rename X86::IMULr16 -> X86::IMULrr16
* Implement R1 = R2 * C where R1 and R2 are 32 or 16 bits. This avoids an
  extra copy into a register, reducing register pressure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9278 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDon't bother forwarding function references which are external to the program entirely
Chris Lattner [Sun, 19 Oct 2003 23:32:50 +0000 (23:32 +0000)]
Don't bother forwarding function references which are external to the program entirely

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9274 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoOk, return an explicit path to the shared object, unbreaking code generator
Chris Lattner [Sun, 19 Oct 2003 21:54:13 +0000 (21:54 +0000)]
Ok, return an explicit path to the shared object, unbreaking code generator
debugging with the JIT

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9273 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix iterator invalidation problem
Chris Lattner [Sun, 19 Oct 2003 21:48:27 +0000 (21:48 +0000)]
Fix iterator invalidation problem

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9272 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoEliminate unused class
Chris Lattner [Sun, 19 Oct 2003 21:39:41 +0000 (21:39 +0000)]
Eliminate unused class

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9270 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoChange the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction...
Chris Lattner [Sun, 19 Oct 2003 21:34:28 +0000 (21:34 +0000)]
Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9269 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoChange the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction...
Chris Lattner [Sun, 19 Oct 2003 21:34:11 +0000 (21:34 +0000)]
Change the Opcode enum for PHI nodes from "Instruction::PHINode" to "Instruction::PHI" to be more consistent with the other instructions.

This allows removal of a special case from the instvisitor

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9268 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago* Multiplications by 2^X are turned into shifts. This factors code out of the
Chris Lattner [Sun, 19 Oct 2003 21:09:10 +0000 (21:09 +0000)]
* Multiplications by 2^X are turned into shifts.  This factors code out of the
  getelementptr code path for use by other code paths (like malloc and alloca).
* Optimize comparisons with zero
* Generate neg, not, inc, and dec instructions, when possible.

This gives some code size wins, which might translate into performance.  We'll
see tommorow in the nightly tester.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9267 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd some new instructions. Wheee
Chris Lattner [Sun, 19 Oct 2003 19:25:35 +0000 (19:25 +0000)]
Add some new instructions.  Wheee

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9266 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoChange it to match llvmgcc.html ... why do we have separate pages for these two?
Brian Gaeke [Sun, 19 Oct 2003 18:23:05 +0000 (18:23 +0000)]
Change it to match llvmgcc.html ... why do we have separate pages for these two?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9265 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoClarify the roles of gccld and gccas.
Brian Gaeke [Sun, 19 Oct 2003 18:15:18 +0000 (18:15 +0000)]
Clarify the roles of gccld and gccas.
Mention that they should really read the gcc manual.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9264 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMinor edits; also expand description of '-v' option.
Brian Gaeke [Sun, 19 Oct 2003 18:09:24 +0000 (18:09 +0000)]
Minor edits; also expand description of '-v' option.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9263 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoTweak -plugin description to match bugpoint.html
Brian Gaeke [Sun, 19 Oct 2003 18:08:57 +0000 (18:08 +0000)]
Tweak -plugin description to match bugpoint.html

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9262 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMostly rewritten.
Brian Gaeke [Sun, 19 Oct 2003 18:03:11 +0000 (18:03 +0000)]
Mostly rewritten.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9261 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoA minor fix
Chris Lattner [Sun, 19 Oct 2003 17:37:33 +0000 (17:37 +0000)]
A minor fix

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9260 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoTake out extra paragraph tag.
Brian Gaeke [Sun, 19 Oct 2003 17:37:12 +0000 (17:37 +0000)]
Take out extra paragraph tag.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9259 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMake this (-run) set look like the other (-disable) set.
Brian Gaeke [Sun, 19 Oct 2003 17:35:35 +0000 (17:35 +0000)]
Make this (-run) set look like the other (-disable) set.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9258 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAlways say "the test program", part 2.
Brian Gaeke [Sun, 19 Oct 2003 17:30:36 +0000 (17:30 +0000)]
Always say "the test program", part 2.
Refer to the various "modules" of bugpoint as "debuggers", not
 "debugging modes" or "modules". I think this is more evocative of
 how they typically act, and it's shorter.
Add a note about how a linker bug can crash bugpoint early.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9257 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoTwo minor fixes
Chris Lattner [Sun, 19 Oct 2003 17:27:12 +0000 (17:27 +0000)]
Two minor fixes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9256 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMinor edits to Description section.
Brian Gaeke [Sun, 19 Oct 2003 17:20:15 +0000 (17:20 +0000)]
Minor edits to Description section.
Add Design Philosophy as a separate subsection.  Clarify its last sentence.
Give Automatic Mode Selection a uniquely-named anchor.
Always call the program the "test program", instead of the "initial program",
 the "LLVM program", the "test case", the "resultant module", etc.
Try to explain the assumptions a little more, instead of just describing the
 process.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9255 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoSpell-check.
Brian Gaeke [Sun, 19 Oct 2003 17:03:59 +0000 (17:03 +0000)]
Spell-check.
Many minor edits.
Rewrite some of the options section for grammatical parallelism,
 clarity, and brevity.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9254 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDeHTMLify the email so that it only gets sent out if something changes.
Chris Lattner [Sun, 19 Oct 2003 16:54:00 +0000 (16:54 +0000)]
DeHTMLify the email so that it only gets sent out if something changes.
Add printouts about failed building and testing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9253 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago.string adds an implicit zero at the end. This is not what we wanted.
Chris Lattner [Sun, 19 Oct 2003 02:51:01 +0000 (02:51 +0000)]
.string adds an implicit zero at the end.  This is not what we wanted.
This fixes PR#44.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9252 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd debugtype, make output marginally more nice
Chris Lattner [Sun, 19 Oct 2003 02:27:40 +0000 (02:27 +0000)]
Add debugtype, make output marginally more nice

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9251 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix PR #47
Chris Lattner [Sun, 19 Oct 2003 02:14:58 +0000 (02:14 +0000)]
Fix PR #47

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9250 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix bug: Jello/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.llx
Chris Lattner [Sun, 19 Oct 2003 00:26:11 +0000 (00:26 +0000)]
Fix bug: Jello/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.llx
This also fixes miscompilation of 176.gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9249 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoNew testcase, distilled from 176.gcc codegen failure
Chris Lattner [Sat, 18 Oct 2003 23:54:45 +0000 (23:54 +0000)]
New testcase, distilled from 176.gcc codegen failure

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9248 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUpdate compile information
Chris Lattner [Sat, 18 Oct 2003 21:55:47 +0000 (21:55 +0000)]
Update compile information

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9247 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd usage blurb
Chris Lattner [Sat, 18 Oct 2003 21:55:35 +0000 (21:55 +0000)]
Add usage blurb

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9246 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoWithout this option, the -run-llc mode does not work with shared objects at
Chris Lattner [Sat, 18 Oct 2003 21:54:47 +0000 (21:54 +0000)]
Without this option, the -run-llc mode does not work with shared objects at
all, making it pointless for use with the code generator debugger.  With it,
it works like a charm.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9245 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd bugpoint advice section
Chris Lattner [Sat, 18 Oct 2003 21:34:15 +0000 (21:34 +0000)]
Add bugpoint advice section

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9244 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoPrint -fno-strict-aliasing as well
Chris Lattner [Sat, 18 Oct 2003 21:08:57 +0000 (21:08 +0000)]
Print -fno-strict-aliasing as well

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9243 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDon't leave a trail of bugpoint-execution-output-* breadcrumbs all over the place
Chris Lattner [Sat, 18 Oct 2003 21:02:51 +0000 (21:02 +0000)]
Don't leave a trail of bugpoint-execution-output-* breadcrumbs all over the place

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9242 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoExpand the --args section
Chris Lattner [Sat, 18 Oct 2003 20:57:23 +0000 (20:57 +0000)]
Expand the --args section

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9241 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago* Add the -additional-so option
Chris Lattner [Sat, 18 Oct 2003 20:54:37 +0000 (20:54 +0000)]
* Add the -additional-so option
* Add info about codegen and miscompilation mode

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9240 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoBeef up the description of bugpoint a lot. Update for renamed options
Chris Lattner [Sat, 18 Oct 2003 20:36:15 +0000 (20:36 +0000)]
Beef up the description of bugpoint a lot.  Update for renamed options

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9239 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoChange run-lli -> run-int
Chris Lattner [Sat, 18 Oct 2003 20:30:48 +0000 (20:30 +0000)]
Change run-lli -> run-int
Many people associate lli with the jit, so we don't want to suprise them

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9238 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDefault to using the CBE instead of the Interpreter if no -run-* option is specified
Chris Lattner [Sat, 18 Oct 2003 20:18:20 +0000 (20:18 +0000)]
Default to using the CBE instead of the Interpreter if no -run-* option is specified

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9237 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix warning
Chris Lattner [Sat, 18 Oct 2003 19:48:10 +0000 (19:48 +0000)]
Fix warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9236 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoPrint stuff to stdout if something changes.
Chris Lattner [Sat, 18 Oct 2003 19:31:39 +0000 (19:31 +0000)]
Print stuff to stdout if something changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9235 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoIf we detect a pass crash during miscompilation testing, immediately enter the
Chris Lattner [Sat, 18 Oct 2003 19:27:48 +0000 (19:27 +0000)]
If we detect a pass crash during miscompilation testing, immediately enter the
crash debugger

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9234 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoadd support for new linkage types
Chris Lattner [Sat, 18 Oct 2003 06:30:21 +0000 (06:30 +0000)]
add support for new linkage types

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9228 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix PR#50
Chris Lattner [Sat, 18 Oct 2003 06:14:59 +0000 (06:14 +0000)]
Fix PR#50

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9227 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd support for the new varargs intrinsics and instructions
Chris Lattner [Sat, 18 Oct 2003 05:57:43 +0000 (05:57 +0000)]
Add support for the new varargs intrinsics and instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9226 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoADd support for the new varargs instructions
Chris Lattner [Sat, 18 Oct 2003 05:56:52 +0000 (05:56 +0000)]
ADd support for the new varargs instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9225 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd support for the new varargs intrinsics
Chris Lattner [Sat, 18 Oct 2003 05:56:40 +0000 (05:56 +0000)]
Add support for the new varargs intrinsics

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9224 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUpdate the sparc backend to at least compile correctly with the new varargs stuff...
Chris Lattner [Sat, 18 Oct 2003 05:55:58 +0000 (05:55 +0000)]
Update the sparc backend to at least compile correctly with the new varargs stuff even if it's not all implemented yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9223 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoInterpret the new varargs intrinsics correctly
Chris Lattner [Sat, 18 Oct 2003 05:55:25 +0000 (05:55 +0000)]
Interpret the new varargs intrinsics correctly

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9222 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUpdated to emit the final 1.0 bytecode format. This supports weak linkage,
Chris Lattner [Sat, 18 Oct 2003 05:54:48 +0000 (05:54 +0000)]
Updated to emit the final 1.0 bytecode format.  This supports weak linkage,
more efficient encoding of varargs calls, and the new varargs intrinsics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9221 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago* New revised variable argument handling support
Chris Lattner [Sat, 18 Oct 2003 05:54:18 +0000 (05:54 +0000)]
* New revised variable argument handling support
* More dense bytecode encoding for varargs calls (like printf)
* Eliminated the extremely old bytecode format.  rev #0 is now 1.0

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9220 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoNew revised variable argument handling support
Chris Lattner [Sat, 18 Oct 2003 05:53:13 +0000 (05:53 +0000)]
New revised variable argument handling support

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9219 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUpdate for new varargs support
Chris Lattner [Sat, 18 Oct 2003 05:51:36 +0000 (05:51 +0000)]
Update for new varargs support

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9218 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoFix bug in my checkin
Chris Lattner [Sat, 18 Oct 2003 00:14:13 +0000 (00:14 +0000)]
Fix bug in my checkin

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9217 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAnother formatting fix
Chris Lattner [Sat, 18 Oct 2003 00:05:05 +0000 (00:05 +0000)]
Another formatting fix

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9216 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoMore cleanups
Chris Lattner [Fri, 17 Oct 2003 23:07:47 +0000 (23:07 +0000)]
More cleanups

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9215 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoBe more helpful if a pass fails while chasing down a miscompilation
Chris Lattner [Fri, 17 Oct 2003 23:03:16 +0000 (23:03 +0000)]
Be more helpful if a pass fails while chasing down a miscompilation

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9214 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago* Align comments into 80 columns
Misha Brukman [Fri, 17 Oct 2003 23:00:03 +0000 (23:00 +0000)]
* Align comments into 80 columns
* Stop using full pathnames (we don't know where the source could be)
* Use only relative distance to the source, so a user can download the code and
  generate their own copy of the doxygen documentation easily
* Since `docs' has moved one level up, all relative path names lost a `..'

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9213 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoChris says it's better to assert that TheModule is valid than silently return 0.
Misha Brukman [Fri, 17 Oct 2003 21:59:57 +0000 (21:59 +0000)]
Chris says it's better to assert that TheModule is valid than silently return 0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9212 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdded additional information about linking dynamic libraries.
John Criswell [Fri, 17 Oct 2003 21:50:38 +0000 (21:50 +0000)]
Added additional information about linking dynamic libraries.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9211 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoYou can't just blat the address into memory, you have to blat its
Brian Gaeke [Fri, 17 Oct 2003 21:47:25 +0000 (21:47 +0000)]
You can't just blat the address into memory, you have to blat its
displacement.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9210 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdding license information for the sample project.
John Criswell [Fri, 17 Oct 2003 21:37:26 +0000 (21:37 +0000)]
Adding license information for the sample project.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9209 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoUpdated the README so that it catagorizes the docs similar to the web page.
John Criswell [Fri, 17 Oct 2003 21:10:57 +0000 (21:10 +0000)]
Updated the README so that it catagorizes the docs similar to the web page.
Added a few missing docs as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9208 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDon't release the Module, as that invalidates the Module* within the
Misha Brukman [Fri, 17 Oct 2003 18:31:59 +0000 (18:31 +0000)]
Don't release the Module, as that invalidates the Module* within the
ModuleProvider, which has bad consequences in lli::callAsMain() which tries to
access that same Module*.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9205 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoImplement replaceMachineCodeForFunction() for x86.
Brian Gaeke [Fri, 17 Oct 2003 18:27:46 +0000 (18:27 +0000)]
Implement replaceMachineCodeForFunction() for x86.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9204 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRefactor jump insertion code from CompilationCallback() into insertJumpAtAddr().
Brian Gaeke [Fri, 17 Oct 2003 18:27:37 +0000 (18:27 +0000)]
Refactor jump insertion code from CompilationCallback() into insertJumpAtAddr().
Make insertFarJumpAtAddr() return void, because nothing uses its return value.
Remove some commented-out code.
Implement replaceMachineCodeForFunction() for SPARC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9203 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd prototype for replaceMachineCodeForFunction().
Brian Gaeke [Fri, 17 Oct 2003 18:27:25 +0000 (18:27 +0000)]
Add prototype for replaceMachineCodeForFunction().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9202 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoReturn the Module that we just materialized.
Misha Brukman [Fri, 17 Oct 2003 18:27:13 +0000 (18:27 +0000)]
Return the Module that we just materialized.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9201 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoTidy up doxygen comment for getPointerToFunction().
Brian Gaeke [Fri, 17 Oct 2003 18:27:12 +0000 (18:27 +0000)]
Tidy up doxygen comment for getPointerToFunction().
Add prototypes for recompileAndRelinkFunction() and runJITOnFunction().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9200 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRefactor running the JIT passes on a single function into the new method,
Brian Gaeke [Fri, 17 Oct 2003 18:27:00 +0000 (18:27 +0000)]
Refactor running the JIT passes on a single function into the new method,
runJITOnFunction().

Add new method for recompiling and patching in new versions of functions,
recompileAndRelinkFunction().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9199 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoReturn the Module being materialized to avoid always calling getModule().
Misha Brukman [Fri, 17 Oct 2003 18:26:51 +0000 (18:26 +0000)]
Return the Module being materialized to avoid always calling getModule().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9198 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoAdd stub version of replaceMachineCodeForFunction. It will live here until
Brian Gaeke [Fri, 17 Oct 2003 18:26:45 +0000 (18:26 +0000)]
Add stub version of replaceMachineCodeForFunction. It will live here until
we have a better place for it to go.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9197 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoRemove extra blank line.
Brian Gaeke [Fri, 17 Oct 2003 18:09:10 +0000 (18:09 +0000)]
Remove extra blank line.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9196 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoDo not crash on empty structures
Chris Lattner [Fri, 17 Oct 2003 18:03:54 +0000 (18:03 +0000)]
Do not crash on empty structures

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9195 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoModified the Makefile so that the sample library is linked dynamically.
John Criswell [Fri, 17 Oct 2003 17:47:08 +0000 (17:47 +0000)]
Modified the Makefile so that the sample library is linked dynamically.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9194 91177308-0d34-0410-b5e6-96231b3b80d8

20 years ago* Give credit where credit's due
Misha Brukman [Fri, 17 Oct 2003 17:28:21 +0000 (17:28 +0000)]
* Give credit where credit's due
* `Quote' names of projects
* Add emails to people's records

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9193 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoNew testcase for C++ frontend crash
Chris Lattner [Fri, 17 Oct 2003 05:20:51 +0000 (05:20 +0000)]
New testcase for C++ frontend crash

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9192 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoTighten up handling of checks for shift instructions
Chris Lattner [Fri, 17 Oct 2003 05:11:44 +0000 (05:11 +0000)]
Tighten up handling of checks for shift instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9191 91177308-0d34-0410-b5e6-96231b3b80d8

20 years agoEliminate some extraneous code in SlotCalculator::insertVal().
Alkis Evlogimenos [Fri, 17 Oct 2003 02:02:40 +0000 (02:02 +0000)]
Eliminate some extraneous code in SlotCalculator::insertVal().

Rename SlotCalculator::getValSlot() to SlotCalculator::getSlot(),
       SlotCalculator::insertValue() to SlotCalculator::getOrCreateSlot(),
       SlotCalculator::insertVal() to SlotCalculator::insertValue(), and
       SlotCalculator::doInsertVal() to SlotCalculator::doInsertValue().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9190 91177308-0d34-0410-b5e6-96231b3b80d8