search for: test_sub

Displaying 2 results from an estimated 2 matches for "test_sub".

Did you mean: test_smb
2013 Jul 22
0
[LLVMdev] How to additionally compile the source files in subdirectories when using Makefile?
...loadable module which mypass.c symbols lies in. And LLVMLIBS USEDLIBS doesn't work either. Here is mypass/Makefile LEVEL = ../../.. DIRS = sub LIBRARYNAME = mypass LOADABLE_MODULE = 1 include $(LEVEL)/Makefile.common And mypass/sub/Makefile LEVEL = ../../../.. # LIBRARYNAME = test_sub # ARCHIVE_LIBRARY = 1 # LOADABLE_MODULE = 1 include $(LEVEL)/Makefile.common When mypss/sub/Makefile uses LOADABLE_MODULE = 1 with another library name(test_sub), and by additionally loading it when using opt, it does work but I think there is a better way. Also AFAIK, using cmake is muc...
2015 Apr 17
3
[LLVMdev] RFC: Indirect Call Promotion LLVM Pass
...ing virtual function calls ----------------------------------- Consider the following C++ example involving virtual functions and calls. ----------------------------------------------------------------------------class Operation { public: virtual int test_add(int a, int b)=0; virtual int test_sub(int a, int b)=0; }; class A : public Operation { public: int test_add(int a, int b) { return a + b; } int test_sub(int a, int b) { return a - b; } }; A myA; int __attribute__ ((noinline)) testmain(int (A::*fptr)(int, int)) { return (myA.*fptr)(1, 2); } -----------------------...