Andrew Trick
5ae231eaab
Rename getFieldNo() to getFieldIndex().
...
Do I really need to justify this?
2020-09-24 22:44:13 -07:00
Erik Eckstein
170d9e9eea
SIL: Let SILGlobalVariables be destroyed.
...
This fixes a memory leak: instructions of the static initializer block were not be freed.
rdar://problem/66931238
2020-09-11 11:09:29 +02:00
Joe Groff
6d6165a9db
SILOptimizer: Recognize globalinit once functions using an attribute instead of symbol name matching
2020-08-25 17:43:27 -07:00
Erik Eckstein
755f6aa2e4
AST, SIL: Remove UTF16 encoding from StringLiteralExpr and StringLiteralInst
...
The UTF16 encoding is not used (anymore). I think it became obsolete with the switch to the UTF8 String representation.
2020-08-06 19:09:09 +02:00
Erik Eckstein
ba7ecfb2c4
SIL: small refactoring of swift::findInitializer
...
NFC
2020-08-03 12:01:29 +02:00
Meghana Gupta
4d705abc87
Merge pull request #32319 from meg-gupta/onfastpath
...
Ignore onFastPath builtin while looking for valid static initializer of a global variable
2020-06-15 10:23:09 -07:00
David Zarzycki
d9073c83fa
Merge pull request #32135 from davezarzycki/pr32135
...
[SIL] NFC: Shrink SILGlobalVariable by 16 bytes
2020-06-11 14:51:05 -04:00
Meghana Gupta
632b5ce0c8
Ignore OnFastPath builtin while looking for valid static initializer of a global variable
2020-06-11 10:06:10 -07:00
David Zarzycki
6c46118cfd
[SIL] NFC: "Stop being a sop"
2020-06-09 10:51:03 -04:00
David Zarzycki
5f162eb1fa
[SIL] NFC: Shrink SILGlobalVariable by 16 bytes
2020-06-05 07:24:25 -04:00
David Zarzycki
9bd6b02f5c
[SILOpt] Add ZeroInitializer to isValidStaticInitializerInst
2020-05-11 15:56:52 -04:00
Michael Gottesman
e1a19e4173
[sil] Split library into subfolders, while still building as a single library still.
...
Specifically, I split it into 3 initial categories: IR, Utils, Verifier. I just
did this quickly, we can always split it more later if we want.
I followed the model that we use in SILOptimizer: ./lib/SIL/CMakeLists.txt vends
a macro (sil_register_sources) to the sub-folders that register the sources of
the subdirectory with a global state variable that ./lib/SIL/CMakeLists.txt
defines. Then after including those subdirs, the parent cmake declares the SIL
library. So the output is the same, but we have the flexibility of having
subdirectories to categorize source files.
2020-03-30 11:01:00 -07:00