summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/MallocHelper.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update malloc call creation code (AllocType is now the element type of the ↵Victor Hernandez2009-09-181-41/+55
| | | | | | | | | | | | | | | | | | malloc, not the resulting type). In getMallocArraySize(), fix bug in the case that array size is the product of 2 constants. Extend isArrayMalloc() and getMallocArraySize() to handle case where malloc is used as char array. Ensure that ArraySize in LowerAllocations::runOnBasicBlock() is correct type. Extend Instruction::isSafeToSpeculativelyExecute() to handle malloc calls. Add verification for malloc calls. Reviewed by Dan Gohman. llvm-svn: 82257
* Fit code within 80 columnsVictor Hernandez2009-09-101-2/+4
| | | | llvm-svn: 81459
* Add some braces to make newer GCCs happy and update CMakeLists.Benjamin Kramer2009-09-101-1/+1
| | | | llvm-svn: 81443
* Add malloc call utility functions. Patch by Victor Hernandez.Evan Cheng2009-09-101-0/+202
llvm-svn: 81426
OpenPOWER on IntegriCloud