LibCallSemantics.h (208954) | LibCallSemantics.h (212904) |
---|---|
1//===- LibCallSemantics.h - Describe library semantics --------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 33 unchanged lines hidden (view full) --- 42 /// isLocation - Return a LocResult if the specified pointer refers to this 43 /// location for the specified call site. This returns "Yes" if we can tell 44 /// that the pointer *does definitely* refer to the location, "No" if we can 45 /// tell that the location *definitely does not* refer to the location, and 46 /// returns "Unknown" if we cannot tell for certain. 47 enum LocResult { 48 Yes, No, Unknown 49 }; | 1//===- LibCallSemantics.h - Describe library semantics --------------------===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 33 unchanged lines hidden (view full) --- 42 /// isLocation - Return a LocResult if the specified pointer refers to this 43 /// location for the specified call site. This returns "Yes" if we can tell 44 /// that the pointer *does definitely* refer to the location, "No" if we can 45 /// tell that the location *definitely does not* refer to the location, and 46 /// returns "Unknown" if we cannot tell for certain. 47 enum LocResult { 48 Yes, No, Unknown 49 }; |
50 LocResult (*isLocation)(CallSite CS, const Value *Ptr, unsigned Size); | 50 LocResult (*isLocation)(ImmutableCallSite CS, 51 const Value *Ptr, unsigned Size); |
51 }; 52 53 /// LibCallFunctionInfo - Each record in the array of FunctionInfo structs 54 /// records the behavior of one libcall that is known by the optimizer. This 55 /// captures things like the side effects of the call. Side effects are 56 /// modeled both universally (in the readnone/readonly) sense, but also 57 /// potentially against a set of abstract locations defined by the optimizer. 58 /// This allows an optimizer to define that some libcall (e.g. sqrt) is --- 78 unchanged lines hidden (view full) --- 137 //===------------------------------------------------------------------===// 138 139 /// getLocationInfo - Return information about the specified LocationID. 140 const LibCallLocationInfo &getLocationInfo(unsigned LocID) const; 141 142 143 /// getFunctionInfo - Return the LibCallFunctionInfo object corresponding to 144 /// the specified function if we have it. If not, return null. | 52 }; 53 54 /// LibCallFunctionInfo - Each record in the array of FunctionInfo structs 55 /// records the behavior of one libcall that is known by the optimizer. This 56 /// captures things like the side effects of the call. Side effects are 57 /// modeled both universally (in the readnone/readonly) sense, but also 58 /// potentially against a set of abstract locations defined by the optimizer. 59 /// This allows an optimizer to define that some libcall (e.g. sqrt) is --- 78 unchanged lines hidden (view full) --- 138 //===------------------------------------------------------------------===// 139 140 /// getLocationInfo - Return information about the specified LocationID. 141 const LibCallLocationInfo &getLocationInfo(unsigned LocID) const; 142 143 144 /// getFunctionInfo - Return the LibCallFunctionInfo object corresponding to 145 /// the specified function if we have it. If not, return null. |
145 const LibCallFunctionInfo *getFunctionInfo(Function *F) const; | 146 const LibCallFunctionInfo *getFunctionInfo(const Function *F) const; |
146 147 148 //===------------------------------------------------------------------===// 149 // Implementation Methods: Subclasses should implement these. 150 //===------------------------------------------------------------------===// 151 152 /// getLocationInfo - Return descriptors for the locations referenced by 153 /// this set of libcalls. --- 13 unchanged lines hidden --- | 147 148 149 //===------------------------------------------------------------------===// 150 // Implementation Methods: Subclasses should implement these. 151 //===------------------------------------------------------------------===// 152 153 /// getLocationInfo - Return descriptors for the locations referenced by 154 /// this set of libcalls. --- 13 unchanged lines hidden --- |