[llvm] [llvm][IR] Add per-global code model attribute (PR #72077)

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 21:50:47 PST 2023


================
@@ -3917,6 +3935,13 @@ Error BitcodeReader::parseGlobalVarRecord(ArrayRef<uint64_t> Record) {
     NewGV->setSanitizerMetadata(Meta);
   }
 
+  if (Record.size() > 17 && Record[17]) {
----------------
heiher wrote:

Currently, 0 meanings invalid (indicating that no code model is explicitly specified for global).  Is it enough to handle it correctly based on the record size and value? It would be great to have an example if I understand wrong.

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


More information about the llvm-commits mailing list