)]}'
{
  "commit": "f612d705252dbf16265649ae5155d51b4c569182",
  "tree": "64bed70da563fb3c5c37c08ab0c3907c0bfa332a",
  "parents": [
    "3a5d77608baf6dac9792f4d156196a7042e894ff"
  ],
  "author": {
    "name": "Sarah Spall",
    "email": "sarahspall@microsoft.com",
    "time": "Thu Mar 27 09:34:25 2025 -0700"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Thu Mar 27 09:34:25 2025 -0700"
  },
  "message": "[HLSL] Add new int overloads for math builtins (#133162)\n\nAdd int overloads which cast the various ints to a float and call the\nfloat builtin.\nThese overloads are conditional on hlsl version 202x or earlier.\nAdd tests and puts tests in own files, including some of the tests added\nfor double overloads.\nCloses #128229",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d8dac0a3942ad11d64ca420b5669b807da37fd9d",
      "old_mode": 33188,
      "old_path": "clang/lib/Headers/hlsl/hlsl_compat_overloads.h",
      "new_id": "47ae34adfe5410c6f01471006c2dfe3ea0b74895",
      "new_mode": 33188,
      "new_path": "clang/lib/Headers/hlsl/hlsl_compat_overloads.h"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e39ae43d205ee50091617ccd0f3cb8b990ccebc4",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/acos-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "8bc018321d9c452d4d266dea2160e5a8a24fb834",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/acos.hlsl",
      "new_id": "8152339a34e87fc54288016f1b044714f2ad55b1",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/acos.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7f7a2c47951297994244d9e2ecb48301b224ade2",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/asin-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "e65844d80cdacc6777748ab2f616e4f167f08943",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/asin.hlsl",
      "new_id": "16efbba79670e7171f793ad5a10f093c0666c76f",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/asin.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "cc870844dbc969ba6f915cfbecc06b6820ee68c0",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/atan-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "5be3d79a2bac6b382d32d444a370682b857f6f97",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/atan.hlsl",
      "new_id": "437835a86370327f930614d658307446e9bc8cb0",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/atan.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5ab1f80e1bfc7b306449c48d488f9761521d395d",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/atan2-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "b0fe7efc7c310eb0120ad96f09f28217cc489978",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/atan2.hlsl",
      "new_id": "53d115641e72f426238401a227bc047a7bc648e5",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/atan2.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b313c99e89a5329e51f32f3ac5332758cedc24db",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/ceil-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "87cae2548aa76aefcf92e5b8f0f121cbefc9502c",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/ceil.hlsl",
      "new_id": "fe0b8f8983838a8168f2ae18cbb4c91f5b1046b9",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/ceil.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b7b11b1c3bd6ddde9c7fca527c7688b56499c47d",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/cos-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "745bb9f99f6ded8283a10b4d6b70ae9243dc1f63",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/cos.hlsl",
      "new_id": "5f993d50498bf2231d1a843e17c6dcd3dd6c6df5",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/cos.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2170f63c53d9751775b95f17674220490d4aa8d2",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/cosh-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "ba2cbdd018a824047c828753c7c3a05d3dd89c1a",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/cosh.hlsl",
      "new_id": "07c64206412db0cc8edf4924d41f63f6904b04ef",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/cosh.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "bafd2368c99615a02d70b6669f8839ce684817af",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/degrees-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "6a55b4d5b1be25f3853e4bf77b6081d99341a779",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/degrees.hlsl",
      "new_id": "64531dd2785ebfa94a9405cf91d0a213a676cadb",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/degrees.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "858a1210169d2c6755a703bf2f6acba771958bfd",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/exp-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "dad80fcbcf2d88c73ed1047220ac551657fdbd17",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/exp.hlsl",
      "new_id": "6ed40ed8f433c2704d66c728447c9749b0360e47",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/exp.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ef522afc244a831fccf847df65d9005d48da3631",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/exp2-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "594da9a990424a466cb8e84a8d7f98b2a4514e0e",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/exp2.hlsl",
      "new_id": "b067427e46368a6b3fb11d89aba93455eaa8080a",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/exp2.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "26d83443ea48949fb041bcac53e4a07e6d70f2fd",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/floor-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "de411746ce4673327c3e2de01814ddd4783683b3",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/floor.hlsl",
      "new_id": "f610baeeefd4827de93caf29c436151b72cea146",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/floor.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "b0e844bd8a8d8b044ae69ce3d10354ad168ee2e9",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/frac-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "71ca8fc0e45184c88d816fa95623d8e927a977e3",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/frac.hlsl",
      "new_id": "7b105ce84359f1d66676515ed9b0de348765c815",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/frac.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "6e452481e2fa2059a907e2a6cf4407734c7954b1",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/lerp-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "4e81d72e7fa9f11339a8177bdbfff6089286d80d",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/lerp.hlsl",
      "new_id": "d7a7113de4878686effa22007c246339ccd5640e",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/lerp.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5c63d630c3f3cac15272ee602680ff33babc204e",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/log-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "3b44a74c7235569afee7ede2bc379136e032e5de",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/log.hlsl",
      "new_id": "e489939594a53c0f1e1484941eca45c3bc68f832",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/log.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "1a0539c3517d56d167d56b6377d96780a23e0a8e",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/log10-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "a5e77153f53b0bd2ad11faaa151a115b67e82d6e",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/log10.hlsl",
      "new_id": "37c8e837c45a3e7a71a350f9b339f39ed5771915",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/log10.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c35b50d8e490a749e7a1e7830674324cf0f445bd",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/log2-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "9af346289f8dccce357272b6f0e5a32bb8d566f9",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/log2.hlsl",
      "new_id": "5159d5bb0fa4e3cad70636b093205d4de12c7e16",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/log2.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e9baa25fc64090b2d16a91d3af2028802b0eb4a3",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/normalize-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "d17ab4fd09a13ce55561bf7fe8e5b443090e145d",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/normalize.hlsl",
      "new_id": "830fc26b7acf0a7386d94452ada6dbee8cc1ab07",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/normalize.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "0d61c07666dc8ddf357a375ee91dc7942d845dfe",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/pow-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "b8b9c68698237f76dc11902bb012d54b365398b1",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/pow.hlsl",
      "new_id": "fd21f1b94c57e96a92c23888603f69418468ecca",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/pow.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d0cfc7b60265bd62f38639b1112a03d544a3bd2e",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/radians-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "0cc5d24f921afbc1756fb1965b81c38f1cd46b79",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/radians.hlsl",
      "new_id": "efdeb9f6e142a58b4103b7d075ea463c5e207705",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/radians.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "109633a64d34e7f5bafb0437823d5424e0028a89",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/round-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "a2c00c8cb36fc87fef2a6de1b6b59247505f620e",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/round.hlsl",
      "new_id": "a945a9677abbb5dcb0a71479f86d49f3acde438f",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/round.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "09f21f366b9d2d6850345a0b32e1189cd29b9d62",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/rsqrt-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "512bb6170a49138578c7b1084517a0607329090f",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/rsqrt.hlsl",
      "new_id": "6c9b1f643713b9e7fcb6e46b5b0e5478238c88f8",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/rsqrt.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a5522e4f28b7f5a5803fada61130c26b07c3f1bc",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/sin-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "fc44f35f838a9f094bed0a84322e3ce227c22cc8",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/sin.hlsl",
      "new_id": "69c657239ef95b8dc523a1850c0971f0b5fb2faf",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/sin.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "64ff8a69d4eec2a65ced34c7cad9c1e9fd1b82a1",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/sinh-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "2850877180a4e417e0f5a11706082d45e88993a9",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/sinh.hlsl",
      "new_id": "d55d60515418cc78cbb2c510814842c11008e951",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/sinh.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "48b74c9db5c6461fbe9544f9558cef3b46b82028",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/sqrt-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "cda6df9a5bb7a152604c0839b3def358d9d3a646",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/sqrt.hlsl",
      "new_id": "94d966f0bef8a4427631123f84e27de07e6409d3",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/sqrt.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d3b979254391c4a1c79caa15b077c8cd2ba5cfe1",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/step-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "1494f284aa6f5b359fe256dd381ee51dd4e226b1",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/step.hlsl",
      "new_id": "49d09e5c6fe6f70cb08ed011ba781c7496966dfd",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/step.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "cd6b6aa903032f85afd240c7351179782676ad8e",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/tan-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "3cc7d0050839751f86d2e446cc918b0c63bc75de",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/tan.hlsl",
      "new_id": "c8c948624a613686d4acb086ba1605cf0a34979d",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/tan.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "457395c6c2a153bcc01fa12aa8820beb8b2a53b7",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/tanh-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "4f34a38bbf9ae588762a58d1d118ed1cffd56aa1",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/tanh.hlsl",
      "new_id": "f947c7f53b110ce454b3ef3340e2feb81c9e0cae",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/tanh.hlsl"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "d913aabfb4066f3bf51ed398ecb25f960d114db1",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/trunc-overloads.hlsl"
    },
    {
      "type": "modify",
      "old_id": "66bd165cbd370eda8f074451cb3cf0e1f533716b",
      "old_mode": 33188,
      "old_path": "clang/test/CodeGenHLSL/builtins/trunc.hlsl",
      "new_id": "26de5bf94c3ccbbf549192692256d7bfad378bc5",
      "new_mode": 33188,
      "new_path": "clang/test/CodeGenHLSL/builtins/trunc.hlsl"
    }
  ]
}
