search for: clenumv

Displaying 12 results from an estimated 12 matches for "clenumv".

Did you mean: clenumval
2013 May 07
1
[LLVMdev] CommandLine: using cl::Positional with enum
...ferent order is possible, for instance, this is not permitted:myTool arg2 option2 arg1So, I thought about using an enum for this first argument:enum OptLevel{option1, option2, option3};cl::opt<OptLevel> OptionsLevel(cl::Positional, cl::desc("Choose one of these options:"),cl::values(clEnumVal(option1, "..."),clEnumVal(option2, "..."),clEnumVal(option3, "..."), clEnumValEnd),);After that, the rest of arguments are also particular of the option selected as the first argument, i.e, the rest of arguments are related with the first one. So I thought I could in...
2013 May 08
0
[LLVMdev] CommandLine: using cl::Positional with enum
...dLine library ever intended for > cl::Positional to be used with cl::opt<T> where T is an enum. > > e.g. > > enum OptLevel { > g, O1, O2, O3 > }; > > cl::opt<OptLevel> OptimizationLevel(cl::desc("Choose optimization level:"), > cl::values( > clEnumVal(g , "No optimizations, enable debugging"), > clEnumVal(O1, "Enable trivial optimizations"), > clEnumVal(O2, "Enable default optimizations"), > clEnumVal(O3, "Enable expensive optimizations"), > clEnumValEnd), > cl::Positional > ); > &g...
2013 May 10
0
[LLVMdev] CommandLine: using cl::Positional with enum
...dLine library ever intended for > cl::Positional to be used with cl::opt<T> where T is an enum. > > e.g. > > enum OptLevel { > g, O1, O2, O3 > }; > > cl::opt<OptLevel> OptimizationLevel(cl::desc("Choose optimization level:"), > cl::values( > clEnumVal(g , "No optimizations, enable debugging"), > clEnumVal(O1, "Enable trivial optimizations"), > clEnumVal(O2, "Enable default optimizations"), > clEnumVal(O3, "Enable expensive optimizations"), > clEnumValEnd), > cl::Positional > ); > &g...
2013 May 12
0
[LLVMdev] CommandLine: using cl::Positional with enum
...mandLine library ever intended for > cl::Positional to be used with cl::opt<T> where T is an enum. > > e.g. > > enum OptLevel { > g, O1, O2, O3 > }; > > cl::opt<OptLevel> OptimizationLevel(cl::desc("Choose optimization level:"), > cl::values( > clEnumVal(g , "No optimizations, enable debugging"), > clEnumVal(O1, "Enable trivial optimizations"), > clEnumVal(O2, "Enable default optimizations"), > clEnumVal(O3, "Enable expensive optimizations"), > clEnumValEnd), > cl::Positional > ); > &gt...
2013 Jun 26
1
[LLVMdev] CommandLine does not work under cygwin
Hi, Recently, I added some command line options to my pass like this: static llvm::cl::opt<MemMod> MemoryModel("mem-mod", llvm::cl::desc("Set the memory model:"), llvm::cl::values( clEnumVal(flat, "flat memory model"), clEnumVal(twodim, "two dimensional memory model"), clEnumValEnd)); This works perfectly on Linux and MacOS, but not under cygwin (MemoryModel global variable does not get set). Has anybody else experienced similar issues? A...
2013 May 14
0
[LLVMdev] CommandLine: using cl::Positional with enum
...:Positional to be used with cl::opt<T> where T is an enum. >> >> e.g. >> >> enum OptLevel { >> g, O1, O2, O3 >> }; >> >> cl::opt<OptLevel> OptimizationLevel(cl::desc("Choose optimization level:"), >> cl::values( >> clEnumVal(g , "No optimizations, enable debugging"), >> clEnumVal(O1, "Enable trivial optimizations"), >> clEnumVal(O2, "Enable default optimizations"), >> clEnumVal(O3, "Enable expensive optimizations"), >> clEnumValEnd), >> cl::Positio...
2020 Jan 12
2
LLD PDB Lines zero number issue
...://bugs.llvm.org/show_bug.cgi?id=44522 llvm-project\llvm\lib\CodeGen\AsmPrinter\DwarfDebug.cpp : static cl::opt<DefaultOnOff> UnknownLocations( "use-unknown-locations", cl::Hidden, cl::desc("Make an absence of debug location information explicit."), cl::values(clEnumVal(Default, "At top of block or after label"), clEnumVal(Enable, "In all cases"), clEnumVal(Disable, "Never")), cl::init(Default)); ... ... // If user said Don't Do That, don't do that. if (UnknownLocations == Disable) return;...
2013 May 08
0
[LLVMdev] CommandLine: using cl::Positional with enum
...ossible, for instance, this is not permitted: myTool arg2 option2 arg1 So, I thought about using an enum for this first argument: enum OptLevel{ option1, option2, option3 }; cl::opt<OptLevel> OptionsLevel(cl::Positional, cl::desc("Choose one of these options:"), cl::values( clEnumVal(option1, "..."), clEnumVal(option2, "..."), clEnumVal(option3, "..."), clEnumValEnd) ); After that, the rest of arguments are also particular of the option selected as the first argument, i.e, the rest of arguments are related with the first one. So I th...
2020 Jan 14
2
LLD PDB Lines zero number issue
...://bugs.llvm.org/show_bug.cgi?id=44522 llvm-project\llvm\lib\CodeGen\AsmPrinter\DwarfDebug.cpp : static cl::opt<DefaultOnOff> UnknownLocations( "use-unknown-locations", cl::Hidden, cl::desc("Make an absence of debug location information explicit."), cl::values(clEnumVal(Default, "At top of block or after label"), clEnumVal(Enable, "In all cases"), clEnumVal(Disable, "Never")), cl::init(Default)); ... ... // If user said Don't Do That, don't do that. if (UnknownLocations == Disable) return;...
2007 Oct 15
2
[LLVMdev] cl::opt Ideas
...erned and I have to prefix each option with something like RegallocDebug so users know what it's about. For example: llvm::cl::bits<coloring_debug_flags> ColoringDebugBits(llvm::cl::desc("Regalloc Debug Flags:"), llvm::cl::values( clEnumVal(RegallocDebugColoring, "Output while coloring"), clEnumVal(RegallocDebugSimplify, "Output while simplifying")); <And associated enums, etc.> -RegallocDebugColoring -RegallocDebugSimplify It's a little tedious to do this for each of the opti...
2012 Sep 14
0
[LLVMdev] Problem using llvm::cl::bits class with gcc 4.7
...LEE tool that uses LLVM (2.9 because that's what KLEE currently uses) and in particular I'm having an unexpected problem with the llvm::cl::bits class. I try something like this... enum testx { A,B }; cl::bits<testx> queryLoggingOptions("option",cl::values( clEnumVal(A,"this is a"), clEnumVal(B,"this is b"), clEnumValEnd ) ); And when I compile (gcc 4.7.1 20120721 (prerelease) ) I get an error like this... In file included from /home/dan/documents/projects/project/klee/src/lib/Core/Executor.cpp:60:0: /home/dan/docume...
2020 Jan 09
2
LLD PDB Lines zero number issue
On Thu, 9 Jan 2020, David Blaikie via llvm-dev wrote: > +rnk who works on COFF debugging things. > >  My understanding is that this has nothing to do with the linker - but is a > function of LLVM optimizations creating line zero debug locations. I believe > rnk & folks have disabled line zero emission for CodeView debug info in some > manner - perhaps that needs a flag? or