Displaying 3 results from an estimated 3 matches for "externalnam".
Did you mean:
externalnames
2014 Nov 10
2
[LLVMdev] External names for LTO in gold plugin
...that I hadn't
submitted to LLVM: it was something like:
Index: Internalize.cpp
===================================================================
--- Internalize.cpp (revision 221403)
+++ Internalize.cpp (working copy)
@@ -87,6 +87,7 @@
itr != ExportList.end(); itr++) {
ExternalNames.insert(*itr);
}
+ ExternalNames.insert(APIList.begin(), APIList.end());
}
This adds the contents of the -internalize-public-api-list flag to the set
of external names for the internalize pass, even when there are already
some names being passed in the constructor.
Then I would pass, e.g.,...
2017 Oct 26
2
LLVM v6.0 Internalize and GlobalDCE PASS can not work together?
Hi Hal,
Thanks for your hint!
$ /opt/llvm-svn/bin/opt -S -internalize
-internalize-public-api-list=main -globaldce hello3.ll -o
hello3.dce.ll it works :)
But I argue that `main` Function should be inserted into ExternalNames
by default:
Index: lib/Transforms/IPO/Internalize.cpp
===================================================================
--- lib/Transforms/IPO/Internalize.cpp (revision 316540)
+++ lib/Transforms/IPO/Internalize.cpp (working copy)
@@ -61,6 +61,7 @@
if (!APIFile.empty())
LoadFi...
2017 Oct 25
3
LLVM v6.0 Internalize and GlobalDCE PASS can not work together?
Hi LLVM developers,
$ cat hello.c
#include <stdio.h>
void foo() {
}
int main(int argc, char *argv[]) {
for (int i = 0; i < 10; i++) {
printf("%d\n", i);
}
return 0;
}
$ /opt/llvm-svn/bin/clang --version
Fedora clang version 6.0.0 (trunk 316308) (based on LLVM 6.0.0svn)
Target: x86_64-redhat-linux
Thread model: posix
InstalledDir: /opt/llvm-svn/bin
$