Update x-macro metaprogramming support in IRGenModule.
Update x-macro metaprogramming support in IRGenModule.

Teach IRGen how to handle runtime functions definitions in RuntimeFunctions.def
depending on their calling convention and on their need for global symbols referring
to their internal implementations.

IRGen would now generate wrappers for runtime functions invocations if at least one
of the following conditions is met:
- The runtime function is defined using FUNCTION_WITH_GLOBAL_SYMBOL_AND_IMPL,
  which explicitly states that it has a global symbol referring to its implementation. In this case,
  the generated wrapper will perform an indirect call using the specified global symbol.
  This results in some performance improvements, because doing so removes one level of
  indirection during a call of the runtime function.
  The invocation sequence before looked like:
    Swift code -> dynamic linker stub -> runtime_function -> indirect call of runtime_function's implementation through a global function pointer
  And using a wrapper it becomes:
    Swift code -> wrapper -> indirect call of runtime_function's implementation through a global function pointer

- The runtime function is defined using the usual FUNCTION x-macro but it uses a calling convention
   that requires that wrappers should be used instead of dynamic linker stubs to avoid the situations
   where the dynamic linker would clobber some of the callee-saved registers when it performs a lazy
   binding of the runtime function, which may lead to an undefined behaviour during the program execution.

   In this case, the behaviour is similar to the first case, except that the name of the global symbol for
   the  runtime function f is assumed to be _f, i.e. it has an underscore as a prefix. This symbol
   will be auto-generated and properly initialized by an x-macro based metaprogramming machinery
   in the runtime library.

gmilos/swift,SwiftAndroid/swift,glessard/swift,jtbandes/swift,jtbandes/swift,dduan/swift,gregomni/swift,johnno1962d/swift,harlanhaskins/swift,JaSpa/swift,apple/swift,therealbnut/swift,manavgabhawala/swift,ken0nek/swift,hooman/swift,aschwaighofer/swift,felix91gr/swift,Jnosh/swift,frootloops/swift,gribozavr/swift,Jnosh/swift,tjw/swift,parkera/swift,deyton/swift,bitjammer/swift,hughbe/swift,zisko/swift,bitjammer/swift,manavgabhawala/swift,apple/swift,manavgabhawala/swift,milseman/swift,CodaFi/swift,atrick/swift,JGiola/swift,tardieu/swift,russbishop/swift,kperryua/swift,JaSpa/swift,russbishop/swift,brentdax/swift,atrick/swift,devincoughlin/swift,parkera/swift,johnno1962d/swift,tinysun212/swift-windows,karwa/swift,dduan/swift,ben-ng/swift,brentdax/swift,lorentey/swift,xedin/swift,tkremenek/swift,gregomni/swift,jmgc/swift,swiftix/swift,gmilos/swift,glessard/swift,austinzheng/swift,kperryua/swift,swiftix/swift,shajrawi/swift,devincoughlin/swift,stephentyrone/swift,russbishop/swift,tjw/swift,alblue/swift,kstaring/swift,xedin/swift,ken0nek/swift,djwbrown/swift,JGiola/swift,hughbe/swift,dduan/swift,ben-ng/swift,jopamer/swift,practicalswift/swift,IngmarStein/swift,harlanhaskins/swift,hooman/swift,apple/swift,glessard/swift,modocache/swift,johnno1962d/swift,xwu/swift,kperryua/swift,felix91gr/swift,austinzheng/swift,devincoughlin/swift,huonw/swift,kstaring/swift,danielmartin/swift,practicalswift/swift,harlanhaskins/swift,karwa/swift,milseman/swift,arvedviehweger/swift,aschwaighofer/swift,gregomni/swift,gribozavr/swift,xedin/swift,roambotics/swift,therealbnut/swift,JGiola/swift,manavgabhawala/swift,benlangmuir/swift,deyton/swift,airspeedswift/swift,ken0nek/swift,gottesmm/swift,KrishMunot/swift,return/swift,tinysun212/swift-windows,gribozavr/swift,gribozavr/swift,alblue/swift,CodaFi/swift,jopamer/swift,tkremenek/swift,shahmishal/swift,hughbe/swift,alblue/swift,amraboelela/swift,kstaring/swift,frootloops/swift,ken0nek/swift,tjw/swift,sschiau/swift,CodaFi/swift,swiftix/swift,modocache/swift,alblue/swift,sschiau/swift,airspeedswift/swift,atrick/swift,sschiau/swift,lorentey/swift,gmilos/swift,huonw/swift,benlangmuir/swift,allevato/swift,hughbe/swift,huonw/swift,zisko/swift,xwu/swift,xedin/swift,tkremenek/swift,jmgc/swift,djwbrown/swift,codestergit/swift,KrishMunot/swift,felix91gr/swift,JGiola/swift,Jnosh/swift,modocache/swift,stephentyrone/swift,gmilos/swift,russbishop/swift,karwa/swift,natecook1000/swift,tinysun212/swift-windows,zisko/swift,IngmarStein/swift,aschwaighofer/swift,milseman/swift,shahmishal/swift,deyton/swift,shahmishal/swift,lorentey/swift,parkera/swift,return/swift,kstaring/swift,natecook1000/swift,sschiau/swift,uasys/swift,alblue/swift,aschwaighofer/swift,shahmishal/swift,jckarter/swift,tardieu/swift,SwiftAndroid/swift,ben-ng/swift,SwiftAndroid/swift,hooman/swift,austinzheng/swift,tjw/swift,codestergit/swift,jopamer/swift,ben-ng/swift,jopamer/swift,shajrawi/swift,jtbandes/swift,jmgc/swift,OscarSwanros/swift,jmgc/swift,felix91gr/swift,milseman/swift,natecook1000/swift,gribozavr/swift,kstaring/swift,dduan/swift,tkremenek/swift,shahmishal/swift,SwiftAndroid/swift,stephentyrone/swift,milseman/swift,practicalswift/swift,JaSpa/swift,jckarter/swift,bitjammer/swift,xedin/swift,shahmishal/swift,SwiftAndroid/swift,nathawes/swift,OscarSwanros/swift,practicalswift/swift,johnno1962d/swift,gribozavr/swift,danielmartin/swift,xedin/swift,brentdax/swift,xwu/swift,sschiau/swift,lorentey/swift,lorentey/swift,devincoughlin/swift,sschiau/swift,nathawes/swift,alblue/swift,bitjammer/swift,jtbandes/swift,SwiftAndroid/swift,kperryua/swift,atrick/swift,tkremenek/swift,rudkx/swift,uasys/swift,glessard/swift,apple/swift,brentdax/swift,stephentyrone/swift,karwa/swift,frootloops/swift,Jnosh/swift,IngmarStein/swift,danielmartin/swift,kperryua/swift,rudkx/swift,airspeedswift/swift,OscarSwanros/swift,tinysun212/swift-windows,apple/swift,jopamer/swift,CodaFi/swift,IngmarStein/swift,arvedviehweger/swift,kperryua/swift,gottesmm/swift,ahoppen/swift,devincoughlin/swift,tkremenek/swift,alblue/swift,zisko/swift,russbishop/swift,lorentey/swift,KrishMunot/swift,JaSpa/swift,therealbnut/swift,arvedviehweger/swift,JGiola/swift,tkremenek/swift,roambotics/swift,xwu/swift,gmilos/swift,dduan/swift,amraboelela/swift,jckarter/swift,tardieu/swift,ben-ng/swift,therealbnut/swift,hooman/swift,rudkx/swift,calebd/swift,calebd/swift,hughbe/swift,natecook1000/swift,roambotics/swift,airspeedswift/swift,therealbnut/swift,danielmartin/swift,frootloops/swift,benlangmuir/swift,rudkx/swift,codestergit/swift,swiftix/swift,atrick/swift,djwbrown/swift,harlanhaskins/swift,shajrawi/swift,therealbnut/swift,huonw/swift,dduan/swift,lorentey/swift,harlanhaskins/swift,kstaring/swift,nathawes/swift,return/swift,gottesmm/swift,hughbe/swift,gottesmm/swift,ahoppen/swift,ken0nek/swift,IngmarStein/swift,uasys/swift,karwa/swift,jtbandes/swift,bitjammer/swift,ken0nek/swift,gribozavr/swift,allevato/swift,benlangmuir/swift,danielmartin/swift,Jnosh/swift,johnno1962d/swift,milseman/swift,aschwaighofer/swift,apple/swift,ken0nek/swift,austinzheng/swift,IngmarStein/swift,zisko/swift,JaSpa/swift,dreamsxin/swift,Jnosh/swift,djwbrown/swift,uasys/swift,huonw/swift,KrishMunot/swift,gottesmm/swift,KrishMunot/swift,stephentyrone/swift,zisko/swift,airspeedswift/swift,karwa/swift,deyton/swift,arvedviehweger/swift,jopamer/swift,gregomni/swift,Jnosh/swift,swiftix/swift,manavgabhawala/swift,JaSpa/swift,jmgc/swift,stephentyrone/swift,arvedviehweger/swift,airspeedswift/swift,codestergit/swift,djwbrown/swift,brentdax/swift,ahoppen/swift,bitjammer/swift,amraboelela/swift,return/swift,shajrawi/swift,danielmartin/swift,felix91gr/swift,brentdax/swift,parkera/swift,tardieu/swift,ben-ng/swift,JaSpa/swift,amraboelela/swift,benlangmuir/swift,roambotics/swift,glessard/swift,OscarSwanros/swift,austinzheng/swift,amraboelela/swift,swiftix/swift,dduan/swift,jtbandes/swift,tinysun212/swift-windows,brentdax/swift,hughbe/swift,practicalswift/swift,aschwaighofer/swift,allevato/swift,atrick/swift,huonw/swift,modocache/swift,uasys/swift,tinysun212/swift-windows,uasys/swift,gribozavr/swift,hooman/swift,parkera/swift,huonw/swift,stephentyrone/swift,manavgabhawala/swift,devincoughlin/swift,nathawes/swift,practicalswift/swift,ahoppen/swift,lorentey/swift,xwu/swift,jopamer/swift,deyton/swift,shahmishal/swift,shajrawi/swift,CodaFi/swift,benlangmuir/swift,djwbrown/swift,shajrawi/swift,jckarter/swift,codestergit/swift,austinzheng/swift,kperryua/swift,modocache/swift,aschwaighofer/swift,IngmarStein/swift,karwa/swift,parkera/swift,manavgabhawala/swift,allevato/swift,natecook1000/swift,calebd/swift,hooman/swift,calebd/swift,danielmartin/swift,frootloops/swift,shajrawi/swift,return/swift,uasys/swift,gmilos/swift,ben-ng/swift,tardieu/swift,harlanhaskins/swift,frootloops/swift,modocache/swift,roambotics/swift,xwu/swift,allevato/swift,OscarSwanros/swift,zisko/swift,ahoppen/swift,arvedviehweger/swift,hooman/swift,practicalswift/swift,nathawes/swift,rudkx/swift,sschiau/swift,nathawes/swift,parkera/swift,OscarSwanros/swift,devincoughlin/swift,calebd/swift,glessard/swift,tjw/swift,amraboelela/swift,parkera/swift,harlanhaskins/swift,KrishMunot/swift,allevato/swift,tinysun212/swift-windows,deyton/swift,milseman/swift,bitjammer/swift,calebd/swift,roambotics/swift,gottesmm/swift,gregomni/swift,austinzheng/swift,shajrawi/swift,johnno1962d/swift,xwu/swift,felix91gr/swift,sschiau/swift,airspeedswift/swift,tjw/swift,nathawes/swift,swiftix/swift,dreamsxin/swift,gottesmm/swift,johnno1962d/swift,natecook1000/swift,russbishop/swift,frootloops/swift,gmilos/swift,modocache/swift,codestergit/swift,rudkx/swift,shahmishal/swift,jmgc/swift,natecook1000/swift,tjw/swift,russbishop/swift,arvedviehweger/swift,jckarter/swift,KrishMunot/swift,gregomni/swift,xedin/swift,amraboelela/swift,felix91gr/swift,devincoughlin/swift,JGiola/swift,xedin/swift,OscarSwanros/swift,ahoppen/swift,return/swift,jtbandes/swift,djwbrown/swift,practicalswift/swift,return/swift,calebd/swift,SwiftAndroid/swift,kstaring/swift,CodaFi/swift,CodaFi/swift,jckarter/swift,codestergit/swift,deyton/swift,therealbnut/swift,karwa/swift,tardieu/swift,jmgc/swift,jckarter/swift,tardieu/swift,allevato/swift