search for: bitvalu

Displaying 1 result from an estimated 1 matches for "bitvalu".

Did you mean: bitval
2012 Jul 25
1
[LLVMdev] [RFC] YAML I/O
...nd flags, rather than just the integer value used internally. To handle that, you define conversion tables and hand them to YAMLIO. For instance: using llvm::yaml::IO; using llvm::yaml::Input; using llvm::yaml::Output; using llvm::yaml::YamlMap; using llvm::yaml::UniqueValue; using llvm::yaml::BitValue; static const UniqueValue<Colors> colorConversions[] = { {cRed, "red"}, {cBlue, "blue"}, {cGreen, "green"}, {cRed, NULL} // default value for optional keys }; static const BitValue<uint32_t> flagConversions[] = { {FlagBig, &qu...