search for: anotheropt

Displaying 5 results from an estimated 5 matches for "anotheropt".

Did you mean: anotherhost
2016 Dec 13
0
Enabling statistics in release builds / static constructors
...e about the details). CC Chris who likely has more information (and possibly pointers). — Mehdi > So here comes the strawman: > > > static Statistic NumBlips("blips"); > static cl::opt MyOpt("my-cool-option", cl::desc("bla")); > static cl::opt AnotherOpt("bla", cl::desc("foo bar")); > // Note that the constructors of Statistic and cl::opt would be reworked to be pure constexpr and do not run any code > > static void init_globals() { > NumBlips.init(); > MyOpt.init(); > AnotherOpt.init(); > } > // Note...
2016 Dec 13
3
Enabling statistics in release builds / static constructors
...to pull off consistenly on all platforms. We should not forget that there is a portable and proven solution: Just write the code! So here comes the strawman: static Statistic NumBlips("blips"); static cl::opt MyOpt("my-cool-option", cl::desc("bla")); static cl::opt AnotherOpt("bla", cl::desc("foo bar")); // Note that the constructors of Statistic and cl::opt would be reworked to be pure constexpr and do not run any code static void init_globals() { NumBlips.init(); MyOpt.init(); AnotherOpt.init(); } // Note that the init_globals() function is...
2016 Dec 13
2
Enabling statistics in release builds / static constructors
...ails when you just have the old link... > > Mehdi > > > >> So here comes the strawman: >> >> >> static Statistic NumBlips("blips"); >> static cl::opt MyOpt("my-cool-option", cl::desc("bla")); >> static cl::opt AnotherOpt("bla", cl::desc("foo bar")); >> // Note that the constructors of Statistic and cl::opt would be reworked to be pure constexpr and do not run any code >> >> static void init_globals() { >> NumBlips.init(); >> MyOpt.init(); >> AnotherOpt.init()...
2016 Dec 13
0
Enabling statistics in release builds / static constructors
Given that LLVM has so many auto-registration systems (cl::opt, target registry, pass registry, statistics, I'm sure there's more), maybe we should spend the time to build an auto-registration system that doesn't involve static constructors? It needs custom code for every supported object file format, and is hard to get right when DSOs are involved, but in the long run it's
2016 Dec 13
0
Enabling statistics in release builds / static constructors
...t;> >> Mehdi >> >> >> >>> So here comes the strawman: >>> >>> >>> static Statistic NumBlips("blips"); >>> static cl::opt MyOpt("my-cool-option", cl::desc("bla")); >>> static cl::opt AnotherOpt("bla", cl::desc("foo bar")); >>> // Note that the constructors of Statistic and cl::opt would be reworked to be pure constexpr and do not run any code >>> >>> static void init_globals() { >>> NumBlips.init(); >>> MyOpt.init(); >&g...