Displaying 5 results from an estimated 5 matches for "numblips".
Did you mean:
num_clips
2016 Dec 13
0
Enabling statistics in release builds / static constructors
...stration (from the pass ctor for instance) and the storage for the options being hold in the context somehow (old memories, not sure 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...
2016 Dec 13
3
Enabling statistics in release builds / static constructors
...e controlled by llvm code. While the compiler/linker nerd in me would love doing that, I could see this being very tricky 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 v...
2016 Dec 13
2
Enabling statistics in release builds / static constructors
...ee how that helps Statistic variables which are still global.
- Matthias
[1] Please someone please give us an easier time to access old mails 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...
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
...> - Matthias
>
> [1] Please someone please give us an easier time to access old mails 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 cons...