You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
theraven abff244ef9 Started 1.6.1 release announcement, updated LLVM optimisations to work with LLVM 3.1. 14 years ago
..
CMakeLists.txt Allow to build the optimizations for llvm with cmake. 14 years ago
COPYING Added LLVM optimisation passes for libobjc2. 16 years ago
ClassIMPCache.cpp Teach the optimisations to work in the presence of exception handling and if the front end emits objc_msgSend() instead of indirect lookups. 14 years ago
ClassLookupCache.cpp Started 1.6.1 release announcement, updated LLVM optimisations to work with LLVM 3.1. 14 years ago
ClassMethodInliner.cpp Started 1.6.1 release announcement, updated LLVM optimisations to work with LLVM 3.1. 14 years ago
IMPCacher.cpp It turns out that allocating one word on stack every loop iteration doesn't scale very well. 14 years ago
IMPCacher.h Add missing file. 14 years ago
IvarPass.cpp Started 1.6.1 release announcement, updated LLVM optimisations to work with LLVM 3.1. 14 years ago
LLVMCompat.h Get the libobjc2 optimisations building again with LLVM trunk. 15 years ago
LoopIMPCachePass.cpp Remove debugging statements. 14 years ago
Makefile Fix LLVM trunk compatibility. 15 years ago
ObjectiveCOpts.cpp Register LLVM passes with the new API. 15 years ago
ObjectiveCOpts.h Get the libobjc2 optimisations building again with LLVM trunk. 15 years ago
README Added LLVM optimisation passes for libobjc2. 16 years ago
TypeFeedback.cpp Started 1.6.1 release announcement, updated LLVM optimisations to work with LLVM 3.1. 14 years ago
TypeFeedbackDrivenInliner.cpp Started 1.6.1 release announcement, updated LLVM optimisations to work with LLVM 3.1. 14 years ago
TypeInfoProvider.h Added missing files. 16 years ago

README

GNUstep Runtime Optimisations
=============================

This directory contains LLVM optimisations specific to libobjc2.  To build
them, you must copy this directory to llvm/lib/Transforms/GNURuntime (where
llvm is the root of your llvm checkout).

Running GNU make will then create GNUObjCRuntime.so.  This library can be
passed to opt to run optimisations on bitcode generated with clang or
LanguageKit.

Non-Fragile Ivar Pass
---------------------

Running `opt -gnu-nonfragile-ivar` will invoke the non-fragile instance
variable lowering pass.  This will turn non-fragile instance variable accesses,
which go via one or two indirection layers, into more fragile ones.  If a class
and all of its superclasses are present in the module then this pass will turn
indirect instance variable accesses into hard-coded ones.

For this pass to be most useful, it should be run as a link-time optimisation.

Type Feedback
-------------

Running `opt -gnu-objc-type-feedback` enables type feedback.  Objective-C
message lookups will be replaced by calls to the profiling version in the
runtime library.  The generated data can then be used for future optimisations
(speculative inlining, polymorphic inline caching, and so on), which have not
yet been written.