[clang] [llvm] [X86] Enhance kCFI type IDs with a 3-bit arity indicator. (PR #117121)

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 23 02:21:24 PST 2024


================
@@ -208,10 +209,34 @@ void llvm::setKCFIType(Module &M, Function &F, StringRef MangledType) {
   std::string Type = MangledType.str();
   if (M.getModuleFlag("cfi-normalize-integers"))
     Type += ".normalized";
+
+  uint32_t OutHash = static_cast<uint32_t>(llvm::xxHash64(Type));
+  auto T = Triple(Twine(M.getTargetTriple()));
----------------
phoebewang wrote:

Like this? https://github.com/llvm/llvm-project/blob/main/llvm/lib/Transforms/Utils/EscapeEnumerator.cpp#L24

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


More information about the cfe-commits mailing list