Home | History | Annotate | Download | only in Analysis

Lines Matching full:malloc

24 //  malloc Call Utility Functions.
27 /// isMalloc - Returns true if the value is either a malloc call or a
28 /// bitcast of the result of a malloc call.
40 if (Callee->getName() != "malloc" &&
47 // Check malloc prototype.
58 /// is a malloc call. Since CallInst::CreateMalloc() only creates calls, we
78 /// instruction is a bitcast of the result of a malloc call.
96 // The size of the malloc's result type must be known to determine array size.
105 // If malloc call's arg can be determined to be a multiple of ElementSize,
117 /// is a call to malloc whose array size can be determined and the array size
127 // CI is a non-array malloc or we can't figure out that it is an array malloc.
131 /// getMallocType - Returns the PointerType resulting from the malloc call.
132 /// The PointerType depends on the number of bitcast uses of the malloc call:
137 assert(isMalloc(CI) && "getMallocType and not malloc call");
150 // Malloc call has 1 bitcast use, so type is the bitcast's destination type.
154 // Malloc call was not bitcast, so type is the malloc function's return type.
162 /// getMallocAllocatedType - Returns the Type allocated by malloc call.
163 /// The Type depends on the number of bitcast uses of the malloc call:
164 /// 0: PointerType is the malloc calls' return type.
172 /// getMallocArraySize - Returns the array size of a malloc call. If the
173 /// argument passed to malloc is a multiple of the size of the malloced type,
179 assert(isMalloc(CI) && "getMallocArraySize and not malloc call");