[llvm] [SPIR-V] Support extension toggling and enabling all (PR #85503)

Arvind Sudarsanam via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 24 13:36:43 PDT 2024


================
@@ -0,0 +1,92 @@
+//===--- SPIRVCommandLine.cpp ---- Command Line Options ---------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file contains definitions of classes and functions needed for
+// processing, parsing, and using CLI options for the SPIR-V backend.
+//
+//===----------------------------------------------------------------------===//
+
+#include "SPIRVCommandLine.h"
+#include "llvm/ADT/StringRef.h"
+#include <map>
+
+#define DEBUG_TYPE "spirv-commandline"
+
+using namespace llvm;
+
+const std::map<std::string, SPIRV::Extension::Extension> ExtensionMap = {
----------------
asudarsa wrote:

Consider SPIRVExtensionMap? Nit

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


More information about the llvm-commits mailing list