)]}'
{
  "commit": "bd6addc032b1ea764494e2de135b5b2c46ee6aca",
  "tree": "9b3fec293c6972ae8454c9a9b07b0d1c6d004ebe",
  "parents": [
    "df267d77f6cc06608d2fabc2139cabbd99007381"
  ],
  "author": {
    "name": "Feng Zou",
    "email": "feng.zou@intel.com",
    "time": "Tue Apr 29 19:12:59 2025 +0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Apr 29 19:12:59 2025 +0800"
  },
  "message": "[X86][APX] Suppress EGPR/NDD instructions for relocations (#136660)\n\nSuppress EGPR/NDD instructions for relocations to avoid APX relocation\ntypes emitted. This is to keep backward compatibility with old version\nof linkers without APX support. The use case is to try APX features with\nLLVM + old built-in linker on RHEL9 OS which is expected to be EOL in\n2032.\nIf there are APX relocation types, the old version of linkers would\nraise \"unsupported relocation type\" error. Example:\n```\n$ llvm-mc -filetype\u003dobj -o got.o -triple\u003dx86_64-unknown-linux got.s\n$ ld got.o -o got.exe\nld: got.o: unsupported relocation type 0x2b\n...\n\n$ cat got.s\n...\nmovq foo@GOTPCREL(%rip), %r16\n\n$ llvm-objdump -dr got.o\n...\n1: d5 48 8b 05 00 00 00 00       movq    (%rip), %r16\n0000000000000005:  R_X86_64_CODE_4_GOTPCRELX    foo-0x4\n```",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9553a8619feb51dd39f83f277cfcdbd9c39fecf2",
      "old_mode": 33188,
      "old_path": "llvm/lib/Target/X86/CMakeLists.txt",
      "new_id": "701140fc4a9dc7be21b936e8146795fda047691f",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/X86/CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "48a3fe1934a9677fab464214b612cc2b4183dd5f",
      "old_mode": 33188,
      "old_path": "llvm/lib/Target/X86/X86.h",
      "new_id": "e6c0612101bc73d3b8bd7cfa92fd57c9c36b66b5",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/X86/X86.h"
    },
    {
      "type": "modify",
      "old_id": "7883f720ffa79939a3a5aa82dc1e881de6f7aac1",
      "old_mode": 33188,
      "old_path": "llvm/lib/Target/X86/X86CompressEVEX.cpp",
      "new_id": "84f63f312a764c8f4cb323482943949001f8fef0",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/X86/X86CompressEVEX.cpp"
    },
    {
      "type": "modify",
      "old_id": "ca953d6008b273778a13f76198d984efd7149534",
      "old_mode": 33188,
      "old_path": "llvm/lib/Target/X86/X86FlagsCopyLowering.cpp",
      "new_id": "ab6e6d0687b716c6f1dce82f012dd4ef875c8862",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/X86/X86FlagsCopyLowering.cpp"
    },
    {
      "type": "modify",
      "old_id": "de29a76882148b42f5dc845deb2aa77d08e3a03a",
      "old_mode": 33188,
      "old_path": "llvm/lib/Target/X86/X86InstrInfo.cpp",
      "new_id": "5220ae2e67bb69111c928ed42d1fb2ba7ed79f2b",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/X86/X86InstrInfo.cpp"
    },
    {
      "type": "modify",
      "old_id": "9ca2737686c092a12dc75bce90829e1860a64b52",
      "old_mode": 33188,
      "old_path": "llvm/lib/Target/X86/X86InstrInfo.h",
      "new_id": "2a9f567689ecbe2ecb58d1112c4a32d1df7ce140",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/X86/X86InstrInfo.h"
    },
    {
      "type": "modify",
      "old_id": "1c4114f8cc9c6143b12b950a7b5681ac30f876cb",
      "old_mode": 33188,
      "old_path": "llvm/lib/Target/X86/X86RegisterInfo.cpp",
      "new_id": "29242c7059d5f1f3992aee66221217e5faf84553",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/X86/X86RegisterInfo.cpp"
    },
    {
      "type": "modify",
      "old_id": "5b6ac3c5da019a6da82cf771e31681f7322ce1eb",
      "old_mode": 33188,
      "old_path": "llvm/lib/Target/X86/X86RegisterInfo.h",
      "new_id": "b3c03e8f2bc22b53f5df8713deb274cbdb49fd92",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/X86/X86RegisterInfo.h"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "fe7a49ab4771d8543c398f1cf096523064c4b25a",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/X86/X86SuppressAPXForReloc.cpp"
    },
    {
      "type": "modify",
      "old_id": "5301b397e2d39896fd461be2260d5642b6eedce3",
      "old_mode": 33188,
      "old_path": "llvm/lib/Target/X86/X86TargetMachine.cpp",
      "new_id": "975b94c18fb7f19fa483dfa52353d11df9d7ce85",
      "new_mode": 33188,
      "new_path": "llvm/lib/Target/X86/X86TargetMachine.cpp"
    },
    {
      "type": "modify",
      "old_id": "6d824f8b510afafc34213ecf585754f584c80c3b",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/O0-pipeline.ll",
      "new_id": "0fbfb42d2a4dd510d7d784fc7872ed97363ccdce",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/O0-pipeline.ll"
    },
    {
      "type": "modify",
      "old_id": "2641fd7c1414149ecf6731ae9b5c5269668462e8",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/apx/add.ll",
      "new_id": "86343811901a981f2de0e9fcc90eaf65b015c07f",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/add.ll"
    },
    {
      "type": "modify",
      "old_id": "23aed77b948b972c0631f44deadd29506afad653",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/apx/and.ll",
      "new_id": "3379ac9dec8931a2e4d60c522cb60d6f05e87988",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/and.ll"
    },
    {
      "type": "modify",
      "old_id": "7723cac8eb3269085ad943cc83460706119799f2",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/apx/compress-evex.mir",
      "new_id": "c0ecfac06aa75f12b79cfc4dd29f3e023c97a881",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/compress-evex.mir"
    },
    {
      "type": "modify",
      "old_id": "56c45336291869edc54787e517700b51aa3a8493",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/apx/dec.ll",
      "new_id": "a4b54d59b309d2536081bcd125dfd9d987eab1bf",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/dec.ll"
    },
    {
      "type": "modify",
      "old_id": "bd764c2edef29dce1d79fbb2017a91f5add95ca8",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/apx/flags-copy-lowering.ll",
      "new_id": "0dcda8efdbc7878fda29d8058baaeb867b3b0c22",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/flags-copy-lowering.ll"
    },
    {
      "type": "modify",
      "old_id": "4002906795dc832f793cc606e3f495a852f3a134",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/apx/flags-copy-lowering.mir",
      "new_id": "a78e051fe65f505c424d81eefe46dcb6075b0ef3",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/flags-copy-lowering.mir"
    },
    {
      "type": "modify",
      "old_id": "d97b2c0baec5e2ad2ea00a242819f8375962da50",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/apx/imul.ll",
      "new_id": "34cc9a90708bdb41147625e7d443df8c21ee94ca",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/imul.ll"
    },
    {
      "type": "modify",
      "old_id": "cecb65261bf81c295ccef73dad6308c2f01841d5",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/apx/inc.ll",
      "new_id": "671edf83a2b964d806314656f8d9583618aafd32",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/inc.ll"
    },
    {
      "type": "modify",
      "old_id": "cf86dc609bc33c55ea555304b389084ba63a97d8",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/apx/neg.ll",
      "new_id": "8f8a391487b5a0883fc8752c3191618d4a2384ad",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/neg.ll"
    },
    {
      "type": "modify",
      "old_id": "995946c007dca420cf19ee559bd557875a3b2859",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/apx/or.ll",
      "new_id": "12ee5fc3404db2df67e1427ccde8f836bec19383",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/or.ll"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "9009f5b1a669c5a049a64870811fb37dfd5889f0",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/reloc.mir"
    },
    {
      "type": "modify",
      "old_id": "1db01f21989297b81fca5c7cd3393fc465b4969d",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/apx/shl.ll",
      "new_id": "896cd55bc7452b49465e3f40e0f88aa756187b2d",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/shl.ll"
    },
    {
      "type": "modify",
      "old_id": "a63d22b30f83dcad7c9dcca8bdfa0aad3d87dc1b",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/apx/shr.ll",
      "new_id": "b82000bd950dc8dca4eda497ff081bb4b385a3de",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/shr.ll"
    },
    {
      "type": "modify",
      "old_id": "9519fab4ee518a765a0bafc329af9ae63c172d15",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/apx/sub.ll",
      "new_id": "1864ca827995499ba8b4308038bf59a0f7661202",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/sub.ll"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "736e843dc1a262f1dc02b68ec9066d2ffc41e0d9",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/tls.ll"
    },
    {
      "type": "modify",
      "old_id": "d908849e2848f3045c1d631798484311bd8da581",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/apx/xor.ll",
      "new_id": "e083c6580398cf1e2ec99cd12dcd4eda6a780b15",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/apx/xor.ll"
    },
    {
      "type": "modify",
      "old_id": "d72f517cfb603f00ec4242b854b408c4263ea3cb",
      "old_mode": 33188,
      "old_path": "llvm/test/CodeGen/X86/opt-pipeline.ll",
      "new_id": "540046e6a86385ea46e15a15b6cc7d72b19a8804",
      "new_mode": 33188,
      "new_path": "llvm/test/CodeGen/X86/opt-pipeline.ll"
    }
  ]
}
