[llvm] [LLVM][Triple] Add an argument to specify canonical form to `Triple::normalize` (PR #122935)

Sam Elliott via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 14 10:36:34 PST 2025


================
@@ -366,14 +366,26 @@ class Triple {
   /// @name Normalization
   /// @{
 
+  /// Canonical form
+  enum class CanonicalForm {
+    NONE = 0,
----------------
lenary wrote:

```suggestion
    ANY = 0,
```

This might be clearer

https://github.com/llvm/llvm-project/pull/122935


More information about the llvm-commits mailing list