[PATCH] D93103: Enable the _ExtInt extension on the BPF Target

Sean Young via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 11 03:57:23 PST 2020


seanyoung created this revision.
seanyoung added reviewers: erichkeane, jtmott-intel.
seanyoung added a project: clang.
seanyoung requested review of this revision.
Herald added a subscriber: cfe-commits.

I need to use _ExtInt on the BPF target. Simply switching it on seems to work fine.

I'm a not sure if anything else is needed. Please let me know if there is anything I can improve.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D93103

Files:
  clang/lib/Basic/Targets/BPF.h


Index: clang/lib/Basic/Targets/BPF.h
===================================================================
--- clang/lib/Basic/Targets/BPF.h
+++ clang/lib/Basic/Targets/BPF.h
@@ -96,6 +96,8 @@
     StringRef CPUName(Name);
     return isValidCPUName(CPUName);
   }
+
+  bool hasExtIntType() const override { return true; }
 };
 } // namespace targets
 } // namespace clang


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93103.311162.patch
Type: text/x-patch
Size: 371 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201211/3e13cf9b/attachment.bin>


More information about the cfe-commits mailing list