hanchenye-llvm-project/llvm
Victor Hernandez 0d025421cd Extend getMallocArraySize() to determine the array size if the malloc argument is:
ArraySize * ElementSize
ElementSize * ArraySize
ArraySize << log2(ElementSize)
ElementSize << log2(ArraySize)

Refactor isArrayMallocHelper and delete isSafeToGetMallocArraySize, so that there is only 1 copy of the malloc array determining logic.
Update users of getMallocArraySize() to not bother calling isArrayMalloc() as well.

llvm-svn: 85421
2009-10-28 20:18:55 +00:00
..
Xcode
autoconf Add an autoconf test to check for optional compiler flags like 2009-10-26 19:58:44 +00:00
bindings Expose the rest of the attribute settings. 2009-09-28 04:42:47 +00:00
cmake Teach cmake that mk[sd]temp is defined in stdlib.h on some systems. 2009-10-28 18:37:31 +00:00
docs use metavariable <result> instead of SSA name %result for consistency 2009-10-28 13:14:50 +00:00
examples Remove FreeInst. 2009-10-26 23:43:48 +00:00
include Extend getMallocArraySize() to determine the array size if the malloc argument is: 2009-10-28 20:18:55 +00:00
lib Extend getMallocArraySize() to determine the array size if the malloc argument is: 2009-10-28 20:18:55 +00:00
projects Move DataTypes.h to include/llvm/System, update all users. This breaks the last 2009-10-26 01:35:46 +00:00
runtime OptimalEdgeProfiling: Creation of profiles. 2009-09-01 19:03:44 +00:00
test Extend getMallocArraySize() to determine the array size if the malloc argument is: 2009-10-28 20:18:55 +00:00
tools Fix to pass options from Gold plugin to LTO codegen 2009-10-28 18:55:55 +00:00
unittests Fix the ModuleDeletion test on PPC and ARM. 2009-10-28 00:28:31 +00:00
utils 80-col violation. 2009-10-27 09:02:49 +00:00
website
win32
CMakeLists.txt CMake: Install .inc files too. 2009-10-27 20:04:22 +00:00
CREDITS.TXT
LICENSE.TXT Add regular expression matching support, based on OpenBSD regexec()/regcomp() 2009-08-30 08:24:09 +00:00
Makefile Move DataTypes.h to include/llvm/System, update all users. This breaks the last 2009-10-26 01:35:46 +00:00
Makefile.common
Makefile.config.in Add an autoconf test to check for optional compiler flags like 2009-10-26 19:58:44 +00:00
Makefile.rules Indent. 2009-10-25 03:22:00 +00:00
ModuleInfo.txt
README.txt First test commit 2009-10-05 22:29:11 +00:00
build-for-llvm-top.sh
configure Regenerate. 2009-10-26 20:00:35 +00:00
llvm.spec.in

README.txt

Low Level Virtual Machine (LLVM)
================================

This directory and its subdirectories contain source code for the Low Level
Virtual Machine, a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the HTML documentation provided in docs/index.html for further
assistance with LLVM.