mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 06:30:19 +00:00
fd90dd5d55
Shrinkify LLVM's footprint by removing the analyze tool and moving its functionality into the opt tool. THis eliminates one of the largest tools from LLVM and doesn't make opt much bigger because it already included most of the analysis passes. To get the old analyze functionality pass the -analyze option to opt. Note that the integeration here is dead simple. The "main" of analyze was just copied to opt and invoked if the -analyze option was given. There may be opportunities for further integration such as removing the distinction between transform passes and analysis passes. To use the analysis functionality, if you previously did this: analyze $FNAME -domset -disable-verify you would now do this: opt -analyze $FNAME -domset -disable-verify Pretty simple. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29762 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
445 B
LLVM
23 lines
445 B
LLVM
; RUN: opt -analyze %s -datastructure-gc -dsgc-check-flags=x:IA
|
|
|
|
; ModuleID = 'bug3.bc'
|
|
target endian = little
|
|
target pointersize = 32
|
|
target triple = "i686-pc-linux-gnu"
|
|
|
|
|
|
%struct.c99 = type {
|
|
uint,
|
|
uint,
|
|
[0 x sbyte*] }
|
|
|
|
implementation ; Functions:
|
|
|
|
|
|
void %foo(%struct.c99* %x) {
|
|
entry:
|
|
%B1 = getelementptr %struct.c99* %x, long 0, uint 2, uint 1
|
|
%B2 = getelementptr %struct.c99* %x, long 0, uint 2, uint 2
|
|
ret void
|
|
}
|