In clang is it possible to declare C-language function prototypes for overloaded functions even though it is not C-language legal. It's because I see that GLSL provides something like this, and I'm wondering if clang does too and how to express it either through command line argument or language attributes, etc.? int f(int, int); float f(float, float); int g() { float x = f(1.0f, 2.0f); } Brian Watt, IBM -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081126/6cb3b601/attachment.html>
On Nov 26, 2008, at 10:00 AM, Brian Watt wrote:> In clang is it possible to declare C-language function prototypes > for overloaded functions even though it is not C-language legal. > It's because I see that GLSL provides something like this, and I'm > wondering if clang does too and how to express it either through > command line argument or language attributes, etc.?Hi Brian, I'm redirecting this to the cfe-dev mailing list, which is where most clang discussions happen. I'll follow up there, -Chris> > > int f(int, int); > float f(float, float); > int g() { > float x = f(1.0f, 2.0f); > } > > Brian Watt, IBM_______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081126/b1ac12a1/attachment.html>
Oops, sorry, thanks Chris. Brian Watt, IBM> On Nov 26, 2008, at 10:00 AM, Brian Watt wrote: > In clang is it possible to declare C-language function prototypes > for overloaded functions even though it is not C-language legal. > It's because I see that GLSL provides something like this, and I'm > wondering if clang does too and how to express it either through > command line argument or language attributes, etc.? > > Hi Brian, > > I'm redirecting this to the cfe-dev mailing list, which is where > most clang discussions happen. I'll follow up there, > > -Chris > > > > int f(int, int); > float f(float, float); > int g() { > float x = f(1.0f, 2.0f); > } > > Brian Watt, IBM_______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081126/fb851a7a/attachment.html>
Reasonably Related Threads
- [LLVMdev] clang and overloaded functions
- 16 bits FLAC file data to 32 bit float buffer for CPU processing
- [RFC mesa] nouveau: Add support for OpenCL global memory buffers
- [LLVMdev] OT: new here, dynamic/runtime compilation (in general)
- [RFC mesa] nouveau: Add support for OpenCL global memory buffers