[llvm] [IR] Add initial support for the byte type (PR #178666)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 10 08:51:24 PST 2026


================
@@ -646,6 +651,18 @@ class DataLayout {
   /// big as that of a pointer of the given pointer (vector of pointer) type.
   LLVM_ABI Type *getIntPtrType(Type *) const;
 
+  /// Returns an integer (vector of integer) type with size at least as
+  /// big as that of a byte of the given byte (vector of byte) type.
+  LLVM_ABI Type *getIntByteType(Type *) const;
----------------
nikic wrote:

This doesn't look like it belongs in DataLayout? Converting a byte to an integer does not require DataLayout information.

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


More information about the llvm-commits mailing list