Displaying 10 results from an estimated 10 matches for "functionboolattrs".
2014 Nov 17
3
[LLVMdev] [RFC] Embedding command line options in bitcode (PR21471)
...------------------===//
>> +
>> +#include "llvm/CodeGen/CodeGenOption.h"
>> +#include "llvm/IR/Attributes.h"
>> +#include "llvm/IR/Module.h"
>> +
>> +using namespace llvm;
>> +
>> +static std::map<std::string, bool> FunctionBoolAttrs;
>> +static std::map<std::string, bool> ModuleBoolAttrs;
>> +
>
> @Chris, should these be using ManagedStatic?
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http:...
2014 Nov 18
3
[LLVMdev] [RFC] Embedding command line options in bitcode (PR21471)
..."llvm/CodeGen/CodeGenOption.h"
>> >> +#include "llvm/IR/Attributes.h"
>> >> +#include "llvm/IR/Module.h"
>> >> +
>> >> +using namespace llvm;
>> >> +
>> >> +static std::map<std::string, bool> FunctionBoolAttrs;
>> >> +static std::map<std::string, bool> ModuleBoolAttrs;
>> >> +
>> >
>> > @Chris, should these be using ManagedStatic?
>> >
>> > _______________________________________________
>> > LLVM Developers mailing list
>>...
2014 Nov 14
6
[LLVMdev] [RFC] Embedding command line options in bitcode (PR21471)
...------------------===//
>> +
>> +#include "llvm/CodeGen/CodeGenOption.h"
>> +#include "llvm/IR/Attributes.h"
>> +#include "llvm/IR/Module.h"
>> +
>> +using namespace llvm;
>> +
>> +static std::map<std::string, bool> FunctionBoolAttrs;
>> +static std::map<std::string, bool> ModuleBoolAttrs;
>> +
>
> @Chris, should these be using ManagedStatic?
I’d much rather they just weren’t static at all. Using globals to store state that inherently isn’t global just feels wrong.
-Chris
-------------- next part ---...
2014 Nov 20
2
[LLVMdev] [RFC] Embedding command line options in bitcode (PR21471)
...;>> >> +#include "llvm/IR/Attributes.h"
>>>> >> +#include "llvm/IR/Module.h"
>>>> >> +
>>>> >> +using namespace llvm;
>>>> >> +
>>>> >> +static std::map<std::string, bool> FunctionBoolAttrs;
>>>> >> +static std::map<std::string, bool> ModuleBoolAttrs;
>>>> >> +
>>>> >
>>>> > @Chris, should these be using ManagedStatic?
>>>> >
>>>> > _______________________________________________
>...
2014 Nov 14
7
[LLVMdev] [RFC] Embedding command line options in bitcode (PR21471)
I'm working on fixing PR21471, which is about embedding codegen command
line options into the bitcode as function or module-level attributes so
that they don't get ignored when doing LTO.
http://llvm.org/bugs/show_bug.cgi?id=21471
I have an initial patch (attached to this email) which enables clang/llvm
to recognize one command line option, write it to the IR, and read it out
in a
2014 Nov 20
2
[LLVMdev] [RFC] Embedding command line options in bitcode (PR21471)
...> >> +#include "llvm/CodeGen/CodeGenOption.h"
> >> +#include "llvm/IR/Attributes.h"
> >> +#include "llvm/IR/Module.h"
> >> +
> >> +using namespace llvm;
> >> +
> >> +static std::map<std::string, bool> FunctionBoolAttrs;
> >> +static std::map<std::string, bool> ModuleBoolAttrs;
> >> +
> >
> > @Chris, should these be using ManagedStatic?
> >
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev at cs.uiuc.edu <...
2014 Dec 02
2
[LLVMdev] [RFC] Embedding command line options in bitcode (PR21471)
..."llvm/CodeGen/CodeGenOption.h"
>> >> +#include "llvm/IR/Attributes.h"
>> >> +#include "llvm/IR/Module.h"
>> >> +
>> >> +using namespace llvm;
>> >> +
>> >> +static std::map<std::string, bool> FunctionBoolAttrs;
>> >> +static std::map<std::string, bool> ModuleBoolAttrs;
>> >> +
>> >
>> > @Chris, should these be using ManagedStatic?
>> >
>> > _______________________________________________
>> > LLVM Developers mailing list
>>...
2014 Dec 03
2
[LLVMdev] [RFC] Embedding command line options in bitcode (PR21471)
...t;>>> >> +#include "llvm/IR/Module.h"
>>>>>>>> >> +
>>>>>>>> >> +using namespace llvm;
>>>>>>>> >> +
>>>>>>>> >> +static std::map<std::string, bool> FunctionBoolAttrs;
>>>>>>>> >> +static std::map<std::string, bool> ModuleBoolAttrs;
>>>>>>>> >> +
>>>>>>>> >
>>>>>>>> > @Chris, should these be using ManagedStatic?
>>>>>>>>...
2014 Dec 03
2
[LLVMdev] [RFC] Embedding command line options in bitcode (PR21471)
...e "llvm/IR/Module.h"
>>>>>>>>>> >> +
>>>>>>>>>> >> +using namespace llvm;
>>>>>>>>>> >> +
>>>>>>>>>> >> +static std::map<std::string, bool> FunctionBoolAttrs;
>>>>>>>>>> >> +static std::map<std::string, bool> ModuleBoolAttrs;
>>>>>>>>>> >> +
>>>>>>>>>> >
>>>>>>>>>> > @Chris, should these be using ManagedStatic?...
2014 Dec 09
2
[LLVMdev] [RFC] Embedding command line options in bitcode (PR21471)
...gt;>>>>>>>>>>> >> +
>>>>>>>>>>>> >> +using namespace llvm;
>>>>>>>>>>>> >> +
>>>>>>>>>>>> >> +static std::map<std::string, bool> FunctionBoolAttrs;
>>>>>>>>>>>> >> +static std::map<std::string, bool> ModuleBoolAttrs;
>>>>>>>>>>>> >> +
>>>>>>>>>>>> >
>>>>>>>>>>>> > @Chris, shoul...