@@ -78,6 +78,10 @@ Attribute getDefaultEndianness(DataLayoutEntryInterface entry);
7878// / DataLayoutInterface if specified, otherwise returns the default.
7979Attribute getDefaultAllocaMemorySpace (DataLayoutEntryInterface entry);
8080
81+ // / Default handler for mangling style request. Dispatches to the
82+ // / DataLayoutInterface if specified, otherwise returns the default.
83+ Attribute getDefaultManglingStyle (DataLayoutEntryInterface entry);
84+
8185// / Default handler for program memory space request. Dispatches to the
8286// / DataLayoutInterface if specified, otherwise returns the default.
8387Attribute getDefaultProgramMemorySpace (DataLayoutEntryInterface entry);
@@ -230,6 +234,9 @@ class DataLayout {
230234 // / Returns the memory space used for AllocaOps.
231235 Attribute getAllocaMemorySpace () const ;
232236
237+ // / Returns the mangling style.
238+ Attribute getManglingStyle () const ;
239+
233240 // / Returns the memory space used for program memory operations.
234241 Attribute getProgramMemorySpace () const ;
235242
@@ -276,6 +283,8 @@ class DataLayout {
276283
277284 // / Cache for the endianness.
278285 mutable std::optional<Attribute> endianness;
286+ // / Cache for the mangling style.
287+ mutable std::optional<Attribute> manglingStyle;
279288 // / Cache for alloca, global, and program memory spaces.
280289 mutable std::optional<Attribute> allocaMemorySpace;
281290 mutable std::optional<Attribute> programMemorySpace;
0 commit comments