[clang] [Offloading][NFC] Move creation of offloading entries from OpenMP (PR #70116)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 25 04:28:19 PDT 2023
================
@@ -0,0 +1,78 @@
+//===- Utility.cpp ------ Collection of geneirc offloading utilities ------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Frontend/Offloading/Utility.h"
+#include "llvm/IR/Constants.h"
+#include "llvm/IR/GlobalValue.h"
+#include "llvm/IR/GlobalVariable.h"
+#include "llvm/IR/Value.h"
+
+using namespace llvm;
+using namespace llvm::offloading;
+
+static IntegerType *getSizeTTy(Module &M) {
----------------
arsenm wrote:
Why not just use getIntPtrType
https://github.com/llvm/llvm-project/pull/70116
More information about the cfe-commits
mailing list