This is an archive of the discontinued LLVM Phabricator instance.

[llvm][StringExtras] Merge StringExtras from MLIR into LLVM
ClosedPublic

Authored by rriddle on Apr 14 2020, 4:40 PM.

Details

Summary

This revision adds two utilities currently present in MLIR to LLVM StringExtras:

  • convertToSnakeFromCamelCase

Convert a string from a camel case naming scheme, to a snake case scheme

  • convertToCamelFromSnakeCase

Convert a string from a snake case naming scheme, to a camel case scheme

Diff Detail

Event Timeline

rriddle created this revision.Apr 14 2020, 4:40 PM
lattner accepted this revision.Apr 14 2020, 6:11 PM

awesome!

This revision is now accepted and ready to land.Apr 14 2020, 6:11 PM
This revision was automatically updated to reflect the committed changes.
thakis added a subscriber: thakis.Apr 14 2020, 7:34 PM

Looks like this doesn't build with msvc's headers: http://45.33.8.238/win/12929/step_4.txt Probably just needs a cctype include (or use the non-namespaced c version).

Looks like this doesn't build with msvc's headers: http://45.33.8.238/win/12929/step_4.txt Probably just needs a cctype include (or use the non-namespaced c version).

Yep, sorry about that. Added in b30246087a3c56c3dad60cadc7fb2692ed758566.

mlir/tools/mlir-vulkan-runner/VulkanRuntime.h