diff options
author | Dan Liew <daniel.liew@imperial.ac.uk> | 2015-12-19 11:21:15 +0000 |
---|---|---|
committer | Dan Liew <daniel.liew@imperial.ac.uk> | 2015-12-19 22:04:50 +0000 |
commit | d95825bef428b631099440d01a3955e7f6276b16 (patch) | |
tree | 8806a8b2628a9e111e84eeb0af7f351f519c81cb /test/lit.cfg | |
parent | d348aee430c8308a29d5edadd4c38e7fee1abadc (diff) | |
download | klee-d95825bef428b631099440d01a3955e7f6276b16.tar.gz |
Implement support for lowering the ``llvm.objectsize`` intrinsic
introduced in LLVM 2.7. Previously KLEE would emit the following error message when ``IntrinsicLowering::LowerIntrinsicCall()`` was called on the intrinsic ``` LLVM ERROR: Code generator does not support intrinsic function 'llvm.objectsize.i64.p0i8'! ``` The ``IntrinsicCleaner`` pass now lowers this intrinsic to a constant integer depending on the second argument to the intrinsic. This corresponds to the case where the size of the object pointed to by the first argument is unknown. An alternative design would be to handle this intrinsic in the Executor where is actually possible to know the size of objects during execution. However that would be much more complicated because if the pointer is symbolic we would have to fork for every object that could be pointed to. The implementation is similar to #260 but we handle the second argument to the intrinsic correctly and also have a simple test case. Unfortunately we have to have a different version of the test case for LLVM 2.9 because the expected suffix for the intrinsic is different in LLVM 2.9.
Diffstat (limited to 'test/lit.cfg')
-rw-r--r-- | test/lit.cfg | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/lit.cfg b/test/lit.cfg index 06ad17aa..f1253ea6 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -85,6 +85,8 @@ for name in subs: # Add a substitution for lli. config.substitutions.append( ('%lli', os.path.join(llvm_tools_dir, 'lli')) ) +# Add a substitution for llvm-as +config.substitutions.append( ('%llvmas', os.path.join(llvm_tools_dir, 'llvm-as')) ) # Get KLEE and Kleaver specific parameters passed on llvm-lit cmd line # e.g. llvm-lit --param klee_opts=--help |