[clang] [llvm] [IR] Add getelementptr nusw and nuw flags (PR #90824)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Wed May 15 11:38:18 PDT 2024


================
@@ -0,0 +1,86 @@
+//===-- llvm/GEPNoWrapFlags.h - NoWrap flags for GEPs -----------*- 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 defines the nowrap flags for getelementptr operators.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_IR_GEPNOWRAPFLAGS_H
+#define LLVM_IR_GEPNOWRAPFLAGS_H
+
+namespace llvm {
+
+class GEPNoWrapFlags {
+  enum : unsigned{
----------------
aeubanks wrote:

clang-format

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


More information about the llvm-commits mailing list