LLVM  3.7.0
RuntimeLibcalls.h
Go to the documentation of this file.
1 //===-- CodeGen/RuntimeLibcalls.h - Runtime Library Calls -------*- C++ -*-===//
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 //===----------------------------------------------------------------------===//
9 //
10 // This file defines the enum representing the list of runtime library calls
11 // the backend may emit during code generation, and also some helper functions.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_CODEGEN_RUNTIMELIBCALLS_H
16 #define LLVM_CODEGEN_RUNTIMELIBCALLS_H
17 
19 
20 namespace llvm {
21 namespace RTLIB {
22  /// RTLIB::Libcall enum - This enum defines all of the runtime library calls
23  /// the backend can emit. The various long double types cannot be merged,
24  /// because 80-bit library functions use "xf" and 128-bit use "tf".
25  ///
26  /// When adding PPCF128 functions here, note that their names generally need
27  /// to be overridden for Darwin with the xxx$LDBL128 form. See
28  /// PPCISelLowering.cpp.
29  ///
30  enum Libcall {
31  // Integer
84 
85  // FLOATING POINT
216 
217  // CONVERSION
302 
303  // COMPARISON
328 
329  // MEMORY
333 
334  // EXCEPTION HANDLING
336 
337  // Family ATOMICs
398 
399  // Stack Protector Fail.
401 
403  };
404 
405  /// getFPEXT - Return the FPEXT_*_* value for the given types, or
406  /// UNKNOWN_LIBCALL if there is none.
407  Libcall getFPEXT(EVT OpVT, EVT RetVT);
408 
409  /// getFPROUND - Return the FPROUND_*_* value for the given types, or
410  /// UNKNOWN_LIBCALL if there is none.
411  Libcall getFPROUND(EVT OpVT, EVT RetVT);
412 
413  /// getFPTOSINT - Return the FPTOSINT_*_* value for the given types, or
414  /// UNKNOWN_LIBCALL if there is none.
415  Libcall getFPTOSINT(EVT OpVT, EVT RetVT);
416 
417  /// getFPTOUINT - Return the FPTOUINT_*_* value for the given types, or
418  /// UNKNOWN_LIBCALL if there is none.
419  Libcall getFPTOUINT(EVT OpVT, EVT RetVT);
420 
421  /// getSINTTOFP - Return the SINTTOFP_*_* value for the given types, or
422  /// UNKNOWN_LIBCALL if there is none.
423  Libcall getSINTTOFP(EVT OpVT, EVT RetVT);
424 
425  /// getUINTTOFP - Return the UINTTOFP_*_* value for the given types, or
426  /// UNKNOWN_LIBCALL if there is none.
427  Libcall getUINTTOFP(EVT OpVT, EVT RetVT);
428 
429  /// Return the SYNC_FETCH_AND_* value for the given opcode and type, or
430  /// UNKNOWN_LIBCALL if there is none.
431  Libcall getATOMIC(unsigned Opc, MVT VT);
432 }
433 }
434 
435 #endif
Libcall
RTLIB::Libcall enum - This enum defines all of the runtime library calls the backend can emit...
Libcall getFPROUND(EVT OpVT, EVT RetVT)
getFPROUND - Return the FPROUND_*_* value for the given types, or UNKNOWN_LIBCALL if there is none...
Libcall getUINTTOFP(EVT OpVT, EVT RetVT)
getUINTTOFP - Return the UINTTOFP_*_* value for the given types, or UNKNOWN_LIBCALL if there is none...
MVT - Machine Value Type.
Libcall getFPTOSINT(EVT OpVT, EVT RetVT)
getFPTOSINT - Return the FPTOSINT_*_* value for the given types, or UNKNOWN_LIBCALL if there is none...
EVT - Extended Value Type.
Definition: ValueTypes.h:31
Libcall getFPEXT(EVT OpVT, EVT RetVT)
getFPEXT - Return the FPEXT_*_* value for the given types, or UNKNOWN_LIBCALL if there is none...
Libcall getFPTOUINT(EVT OpVT, EVT RetVT)
getFPTOUINT - Return the FPTOUINT_*_* value for the given types, or UNKNOWN_LIBCALL if there is none...
Libcall getSINTTOFP(EVT OpVT, EVT RetVT)
getSINTTOFP - Return the SINTTOFP_*_* value for the given types, or UNKNOWN_LIBCALL if there is none...
Libcall getATOMIC(unsigned Opc, MVT VT)
Return the SYNC_FETCH_AND_* value for the given opcode and type, or UNKNOWN_LIBCALL if there is none...