[clang] 6c412b6 - [BPF] Add a few new insns under cpu=v4

2023-07-26 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2023-07-26T08:37:30-07:00 New Revision: 6c412b6c6faa2dabd8602d35d3f5e796fb1daf80 URL: https://github.com/llvm/llvm-project/commit/6c412b6c6faa2dabd8602d35d3f5e796fb1daf80 DIFF: https://github.com/llvm/llvm-project/commit/6c412b6c6faa2dabd8602d35d3f5e796fb1daf80.diff

[clang] 3060304 - [Clang][BPF] Type print btf_type_tag properly

2023-05-08 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2023-05-08T07:41:27-07:00 New Revision: 3060304906f08f933672f0a30cc57d5f09766444 URL: https://github.com/llvm/llvm-project/commit/3060304906f08f933672f0a30cc57d5f09766444 DIFF: https://github.com/llvm/llvm-project/commit/3060304906f08f933672f0a30cc57d5f09766444.diff

[clang] 183d075 - [BPF][Clang] Fix func argument pattern in bpf-stack-protector test

2023-01-21 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2023-01-21T22:33:15-08:00 New Revision: 183d075055c591dedead7ece972f1bdea611aa3b URL: https://github.com/llvm/llvm-project/commit/183d075055c591dedead7ece972f1bdea611aa3b DIFF: https://github.com/llvm/llvm-project/commit/183d075055c591dedead7ece972f1bdea611aa3b.diff

[clang] 56b038f - [BPF][clang] Ignore stack protector options for BPF target

2023-01-20 Thread Yonghong Song via cfe-commits
Author: Eduard Zingerman Date: 2023-01-20T15:12:43-08:00 New Revision: 56b038f887f37f69afac2d3abe02b46dcb9305ec URL: https://github.com/llvm/llvm-project/commit/56b038f887f37f69afac2d3abe02b46dcb9305ec DIFF: https://github.com/llvm/llvm-project/commit/56b038f887f37f69afac2d3abe02b46dcb9305ec.di

[clang] 58bdf8f - [BPF] preserve btf_decl_tag for parameters of extern functions

2023-01-06 Thread Yonghong Song via cfe-commits
Author: Eduard Zingerman Date: 2023-01-06T22:48:52-08:00 New Revision: 58bdf8f9a8c3331c6c4d5f631395fb6f786d1e9c URL: https://github.com/llvm/llvm-project/commit/58bdf8f9a8c3331c6c4d5f631395fb6f786d1e9c DIFF: https://github.com/llvm/llvm-project/commit/58bdf8f9a8c3331c6c4d5f631395fb6f786d1e9c.di

[clang] 2f047b5 - [clang][Sema] Fix a clang crash with btf_type_tag

2022-11-01 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2022-11-01T08:07:13-07:00 New Revision: 2f047b56ba0e4830b617999a386f6fea79c16c91 URL: https://github.com/llvm/llvm-project/commit/2f047b56ba0e4830b617999a386f6fea79c16c91 DIFF: https://github.com/llvm/llvm-project/commit/2f047b56ba0e4830b617999a386f6fea79c16c91.diff

[clang] 524c640 - [clang][DebugInfo] Emit DISubprogram for extern functions with reserved names

2022-10-28 Thread Yonghong Song via cfe-commits
Author: Eduard Zingerman Date: 2022-10-28T08:07:54-07:00 New Revision: 524c640090a8463305acbafd7606f1db3c1256e2 URL: https://github.com/llvm/llvm-project/commit/524c640090a8463305acbafd7606f1db3c1256e2 DIFF: https://github.com/llvm/llvm-project/commit/524c640090a8463305acbafd7606f1db3c1256e2.di

[clang] 75be048 - [clang][DebugInfo] Emit debuginfo for non-constant case value

2022-09-28 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2022-09-28T12:10:48-07:00 New Revision: 75be0482a2e2a78fae83f1ca604f4ee20d673796 URL: https://github.com/llvm/llvm-project/commit/75be0482a2e2a78fae83f1ca604f4ee20d673796 DIFF: https://github.com/llvm/llvm-project/commit/75be0482a2e2a78fae83f1ca604f4ee20d673796.diff

[clang] 481d67d - [Clang][BPF] Support record argument with direct values

2022-08-18 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2022-08-18T19:11:50-07:00 New Revision: 481d67d310a7a4213da72f838d6bafaa52ed01d3 URL: https://github.com/llvm/llvm-project/commit/481d67d310a7a4213da72f838d6bafaa52ed01d3 DIFF: https://github.com/llvm/llvm-project/commit/481d67d310a7a4213da72f838d6bafaa52ed01d3.diff

[clang] d9198f6 - [Clang][BPF]: Force sign/zero extension for return values in caller

2022-08-16 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2022-08-16T16:08:01-07:00 New Revision: d9198f64d9be149acdad109cd053b6acdd9635d2 URL: https://github.com/llvm/llvm-project/commit/d9198f64d9be149acdad109cd053b6acdd9635d2 DIFF: https://github.com/llvm/llvm-project/commit/d9198f64d9be149acdad109cd053b6acdd9635d2.diff

[clang] 70557eb - [clang][BPF] Update comment to include TYPE_MATCH

2022-06-29 Thread Yonghong Song via cfe-commits
Author: Daniel Müller Date: 2022-06-29T18:32:06-07:00 New Revision: 70557eb3938a0bdc784c9ae14e84e9ad9914ebdc URL: https://github.com/llvm/llvm-project/commit/70557eb3938a0bdc784c9ae14e84e9ad9914ebdc DIFF: https://github.com/llvm/llvm-project/commit/70557eb3938a0bdc784c9ae14e84e9ad9914ebdc.diff

[clang] bdf69f6 - [Clang] Fix an unused-but-set-variable warning with volatile variable

2022-03-21 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2022-03-21T14:59:03-07:00 New Revision: bdf69f63df2cf4c9e3cd1af5cfcd503bc8e2869b URL: https://github.com/llvm/llvm-project/commit/bdf69f63df2cf4c9e3cd1af5cfcd503bc8e2869b DIFF: https://github.com/llvm/llvm-project/commit/bdf69f63df2cf4c9e3cd1af5cfcd503bc8e2869b.diff

Re: [PATCH] D120296: [Attr] Fix a btf_type_tag AST generation bug

2022-03-16 Thread Yonghong Song via cfe-commits
On 3/16/22 10:32 AM, Sterling Augustine via Phabricator wrote: saugustine added a comment. This change ends up leaving some unhandled enum with switches inside lldb, and it isn't obvious to me how to fix them. Can you take a quick look? llvm-project/lldb/source/Plugins/TypeSystem/Clang/T

[clang] 3251ba2 - [Attr] Fix a btf_type_tag AST generation

2022-03-16 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2022-03-16T08:46:52-07:00 New Revision: 3251ba2d0fcf5223fce3e270b91c54f548664b4e URL: https://github.com/llvm/llvm-project/commit/3251ba2d0fcf5223fce3e270b91c54f548664b4e DIFF: https://github.com/llvm/llvm-project/commit/3251ba2d0fcf5223fce3e270b91c54f548664b4e.diff

[clang] bbab17c - [Clang][Attr] fix a btf_type_attr CGDebugInfo codegen bug

2021-11-06 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-11-06T18:19:00-07:00 New Revision: bbab17c6c987d7a6612855c02a4e8988dac0dc17 URL: https://github.com/llvm/llvm-project/commit/bbab17c6c987d7a6612855c02a4e8988dac0dc17 DIFF: https://github.com/llvm/llvm-project/commit/bbab17c6c987d7a6612855c02a4e8988dac0dc17.diff

Re: [PATCH] D111199: [Clang][LLVM][Attr] support btf_type_tag attribute

2021-11-06 Thread Yonghong Song via cfe-commits
On 11/6/21 4:36 PM, Nathan Chancellor via Phabricator wrote: nathanchance added a comment. I bisected a crash in the Linux kernel down to the reland commit (and it is not fixed as of https://github.com/llvm/llvm-project/commit/2249ecee8d9a6237f51485bd39f01ba031575987): $ git bisect log

[clang] 3466e00 - Reland "[Attr] support btf_type_tag attribute"

2021-11-05 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-11-05T11:25:17-07:00 New Revision: 3466e00716e12e32fdb100e3fcfca5c2b3e8d784 URL: https://github.com/llvm/llvm-project/commit/3466e00716e12e32fdb100e3fcfca5c2b3e8d784 DIFF: https://github.com/llvm/llvm-project/commit/3466e00716e12e32fdb100e3fcfca5c2b3e8d784.diff

Re: [PATCH] D111199: [Clang][LLVM][Attr] support btf_type_tag attribute

2021-11-05 Thread Yonghong Song via cfe-commits
On 11/5/21 1:40 AM, Martin Storsjö via Phabricator wrote: mstorsjo added a comment. I went ahead and reverted this, as it caused crashes when compiling a number of projects. The most reduced testcase is this: $ cat reduced.c void a(*); void a() {} $ clang -c reduced.c -O2 -g A f

[clang] 737e421 - [Attr] support btf_type_tag attribute

2021-11-04 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-11-04T14:23:31-07:00 New Revision: 737e4216c537c33aab8ec51880f06b8a54325b94 URL: https://github.com/llvm/llvm-project/commit/737e4216c537c33aab8ec51880f06b8a54325b94 DIFF: https://github.com/llvm/llvm-project/commit/737e4216c537c33aab8ec51880f06b8a54325b94.diff

[clang] eb0fa8b - [Clang][Attr] Support btf_type_tag attribute

2021-11-04 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-11-04T13:59:18-07:00 New Revision: eb0fa8bfa356d49198f98b878b004bce59232bb0 URL: https://github.com/llvm/llvm-project/commit/eb0fa8bfa356d49198f98b878b004bce59232bb0 DIFF: https://github.com/llvm/llvm-project/commit/eb0fa8bfa356d49198f98b878b004bce59232bb0.diff

[clang] f6811ce - [DebugInfo] Support typedef with btf_decl_tag attributes

2021-10-21 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-10-21T08:42:58-07:00 New Revision: f6811cec84218912d1c7c9b0b8d308834e6e24e3 URL: https://github.com/llvm/llvm-project/commit/f6811cec84218912d1c7c9b0b8d308834e6e24e3 DIFF: https://github.com/llvm/llvm-project/commit/f6811cec84218912d1c7c9b0b8d308834e6e24e3.diff

[clang] b396010 - [Clang] Support typedef with btf_decl_tag attributes

2021-10-21 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-10-21T08:41:49-07:00 New Revision: b396010240cda92f5fcfa30cba1b9ad905561eae URL: https://github.com/llvm/llvm-project/commit/b396010240cda92f5fcfa30cba1b9ad905561eae DIFF: https://github.com/llvm/llvm-project/commit/b396010240cda92f5fcfa30cba1b9ad905561eae.diff

[clang] a162b67 - [Clang][Attr] rename btf_tag to btf_decl_tag

2021-10-11 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-10-11T22:17:17-07:00 New Revision: a162b67c98066218d0d00aa13b99afb95d9bb5e6 URL: https://github.com/llvm/llvm-project/commit/a162b67c98066218d0d00aa13b99afb95d9bb5e6 DIFF: https://github.com/llvm/llvm-project/commit/a162b67c98066218d0d00aa13b99afb95d9bb5e6.diff

[clang] c5fb1a0 - Revert "[Clang] Ignore BTFTag attr if used as a type attribute"

2021-10-11 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-10-11T15:34:26-07:00 New Revision: c5fb1a09533ec2ed43a80f39c1592e5ee887ef9e URL: https://github.com/llvm/llvm-project/commit/c5fb1a09533ec2ed43a80f39c1592e5ee887ef9e DIFF: https://github.com/llvm/llvm-project/commit/c5fb1a09533ec2ed43a80f39c1592e5ee887ef9e.diff

[clang] b875343 - [Clang] Ignore BTFTag attr if used as a type attribute

2021-09-22 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-09-22T13:48:29-07:00 New Revision: b875343873a584965daf507d73ff1fe71eab1953 URL: https://github.com/llvm/llvm-project/commit/b875343873a584965daf507d73ff1fe71eab1953 DIFF: https://github.com/llvm/llvm-project/commit/b875343873a584965daf507d73ff1fe71eab1953.diff

[clang] 82d9cb3 - [DebugInfo] convert btf_tag attrs to DI annotations for func parameters

2021-08-26 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-08-26T14:27:58-07:00 New Revision: 82d9cb34a2782df04975abb5a86365546ffae867 URL: https://github.com/llvm/llvm-project/commit/82d9cb34a2782df04975abb5a86365546ffae867 DIFF: https://github.com/llvm/llvm-project/commit/82d9cb34a2782df04975abb5a86365546ffae867.diff

[clang] d2d7a90 - [DebugInfo] convert btf_tag attrs to DI annotations for DIGlobalVariable

2021-08-26 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-08-26T10:36:33-07:00 New Revision: d2d7a90ceded94251905b7adcd5eb2ac5191896f URL: https://github.com/llvm/llvm-project/commit/d2d7a90ceded94251905b7adcd5eb2ac5191896f DIFF: https://github.com/llvm/llvm-project/commit/d2d7a90ceded94251905b7adcd5eb2ac5191896f.diff

[clang] 2de051b - [DebugInfo] convert btf_tag attrs to DI annotations for DISubprograms

2021-08-26 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-08-26T08:54:11-07:00 New Revision: 2de051ba124d92de953ac2420668407f458bcec6 URL: https://github.com/llvm/llvm-project/commit/2de051ba124d92de953ac2420668407f458bcec6 DIFF: https://github.com/llvm/llvm-project/commit/2de051ba124d92de953ac2420668407f458bcec6.diff

[clang] 5ca7131 - [DebugInfo] convert btf_tag attrs to DI annotations for record fields

2021-08-20 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-08-20T12:52:51-07:00 New Revision: 5ca7131eb369949ee3adf2d3a562bf7e56ca7422 URL: https://github.com/llvm/llvm-project/commit/5ca7131eb369949ee3adf2d3a562bf7e56ca7422 DIFF: https://github.com/llvm/llvm-project/commit/5ca7131eb369949ee3adf2d3a562bf7e56ca7422.diff

[clang] cab12fc - [DebugInfo] convert btf_tag attrs to annotations for DIComposite types

2021-08-19 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-08-19T18:01:29-07:00 New Revision: cab12fc28c75ea82b747d636a9d20f0840777299 URL: https://github.com/llvm/llvm-project/commit/cab12fc28c75ea82b747d636a9d20f0840777299 DIFF: https://github.com/llvm/llvm-project/commit/cab12fc28c75ea82b747d636a9d20f0840777299.diff

[clang] 1b194ef - [Clang] add btf_tag attribute

2021-08-12 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-08-12T16:34:22-07:00 New Revision: 1b194ef1ab3b856afb8458fa9c58408360d292cb URL: https://github.com/llvm/llvm-project/commit/1b194ef1ab3b856afb8458fa9c58408360d292cb DIFF: https://github.com/llvm/llvm-project/commit/1b194ef1ab3b856afb8458fa9c58408360d292cb.diff

[clang] 833e9b2 - [BPF] add support for 32 bit registers in inline asm

2021-05-16 Thread Yonghong Song via cfe-commits
Author: Alessandro Decina Date: 2021-05-16T11:01:47-07:00 New Revision: 833e9b2ea7a7290f8833d524c8f8865558c1016a URL: https://github.com/llvm/llvm-project/commit/833e9b2ea7a7290f8833d524c8f8865558c1016a DIFF: https://github.com/llvm/llvm-project/commit/833e9b2ea7a7290f8833d524c8f8865558c1016a.d

[clang] a2a3ca8 - BPF: emit debuginfo for Function of DeclRefExpr if requested

2021-04-26 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-04-26T16:53:25-07:00 New Revision: a2a3ca8d97962d90443ee758e47877e15d7e3832 URL: https://github.com/llvm/llvm-project/commit/a2a3ca8d97962d90443ee758e47877e15d7e3832 DIFF: https://github.com/llvm/llvm-project/commit/a2a3ca8d97962d90443ee758e47877e15d7e3832.diff

[clang] 283db5f - BPF: fix enum value 0 issue for __builtin_preserve_enum_value()

2021-03-01 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2021-03-01T10:23:24-08:00 New Revision: 283db5f0837d55f91242812003adf6e189ba743e URL: https://github.com/llvm/llvm-project/commit/283db5f0837d55f91242812003adf6e189ba743e DIFF: https://github.com/llvm/llvm-project/commit/283db5f0837d55f91242812003adf6e189ba743e.diff

Re: [PATCH] D72184: [BPF] support atomic instructions

2020-11-17 Thread Yonghong Song via cfe-commits
On 11/17/20 3:23 AM, Brendan Jackman via Phabricator wrote: jackmanb added inline comments. Comment at: llvm/lib/Target/BPF/BPFInstrInfo.td:684 + let Inst{47-32} = addr{15-0}; // offset + let Inst{11-8} = val; + let Inst{7-4} = Opc.Value; yonghong-song wro

[clang] 4369223 - BPF: make __builtin_btf_type_id() return 64bit int

2020-11-16 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2020-11-16T07:08:41-08:00 New Revision: 4369223ea73c4b8a3fa9a8a84533125c7d0eea98 URL: https://github.com/llvm/llvm-project/commit/4369223ea73c4b8a3fa9a8a84533125c7d0eea98 DIFF: https://github.com/llvm/llvm-project/commit/4369223ea73c4b8a3fa9a8a84533125c7d0eea98.diff

[clang] 000ad1a - [clang] fix a compilation bug

2020-08-16 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2020-08-16T21:53:37-07:00 New Revision: 000ad1a976a537256b17788dcf8b50ca117007b8 URL: https://github.com/llvm/llvm-project/commit/000ad1a976a537256b17788dcf8b50ca117007b8 DIFF: https://github.com/llvm/llvm-project/commit/000ad1a976a537256b17788dcf8b50ca117007b8.diff

[clang] 00602ee - BPF: simplify IR generation for __builtin_btf_type_id()

2020-08-04 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2020-08-04T16:29:42-07:00 New Revision: 00602ee7ef0bf6c68d690a2bd729c12b95c95c99 URL: https://github.com/llvm/llvm-project/commit/00602ee7ef0bf6c68d690a2bd729c12b95c95c99 DIFF: https://github.com/llvm/llvm-project/commit/00602ee7ef0bf6c68d690a2bd729c12b95c95c99.diff

[clang] 6d67506 - [clang][BPF] support type exist/size and enum exist/value relocations

2020-08-04 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2020-08-04T08:39:53-07:00 New Revision: 6d6750696400e7ce988d66a1a00e1d0cb32815f8 URL: https://github.com/llvm/llvm-project/commit/6d6750696400e7ce988d66a1a00e1d0cb32815f8 DIFF: https://github.com/llvm/llvm-project/commit/6d6750696400e7ce988d66a1a00e1d0cb32815f8.diff

[clang] 072cde0 - [Clang][BPF] implement __builtin_btf_type_id() builtin function

2020-05-15 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2020-05-15T09:44:54-07:00 New Revision: 072cde03aaa13a2c57acf62d79876bf79aa1919f URL: https://github.com/llvm/llvm-project/commit/072cde03aaa13a2c57acf62d79876bf79aa1919f DIFF: https://github.com/llvm/llvm-project/commit/072cde03aaa13a2c57acf62d79876bf79aa1919f.diff

[clang] ced0d1f - [BPF] support 128bit int explicitly in layout spec

2020-03-28 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2020-03-28T11:46:29-07:00 New Revision: ced0d1f42b39bd93b350b2597ce6587d107c26a7 URL: https://github.com/llvm/llvm-project/commit/ced0d1f42b39bd93b350b2597ce6587d107c26a7 DIFF: https://github.com/llvm/llvm-project/commit/ced0d1f42b39bd93b350b2597ce6587d107c26a7.diff

[clang] 9271cab - [BPF] use base lvalue type for preserve_{struct, union}_access_index metadata

2020-02-04 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2020-02-04T09:28:30-08:00 New Revision: 9271cab270a52b5200ef45a16f1a9d9baaccaba0 URL: https://github.com/llvm/llvm-project/commit/9271cab270a52b5200ef45a16f1a9d9baaccaba0 DIFF: https://github.com/llvm/llvm-project/commit/9271cab270a52b5200ef45a16f1a9d9baaccaba0.diff

[clang] e3d8ee3 - reland "[DebugInfo] Support to emit debugInfo for extern variables"

2019-12-22 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2019-12-22T18:28:50-08:00 New Revision: e3d8ee35e4adca664a9149536e0f0b3b0ceaeaeb URL: https://github.com/llvm/llvm-project/commit/e3d8ee35e4adca664a9149536e0f0b3b0ceaeaeb DIFF: https://github.com/llvm/llvm-project/commit/e3d8ee35e4adca664a9149536e0f0b3b0ceaeaeb.diff

[clang] d77ae15 - [DebugInfo] Support to emit debugInfo for extern variables

2019-12-10 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2019-12-10T08:09:51-08:00 New Revision: d77ae1552fc21a9f3877f3ed7e13d631f517c825 URL: https://github.com/llvm/llvm-project/commit/d77ae1552fc21a9f3877f3ed7e13d631f517c825 DIFF: https://github.com/llvm/llvm-project/commit/d77ae1552fc21a9f3877f3ed7e13d631f517c825.diff

[clang] dd16b3f - [BPF] Restrict preserve_access_index attribute to C only

2019-11-14 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2019-11-14T14:14:59-08:00 New Revision: dd16b3fe2559789adcdd7d4d0bfe2796897877a3 URL: https://github.com/llvm/llvm-project/commit/dd16b3fe2559789adcdd7d4d0bfe2796897877a3 DIFF: https://github.com/llvm/llvm-project/commit/dd16b3fe2559789adcdd7d4d0bfe2796897877a3.diff

[clang] 1583158 - [BPF] fix clang test failure for bpf-attr-preserve-access-index-4.c

2019-11-13 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2019-11-13T09:40:57-08:00 New Revision: 1583158042a7e1f8b4f5194b1db362328e6902f3 URL: https://github.com/llvm/llvm-project/commit/1583158042a7e1f8b4f5194b1db362328e6902f3 DIFF: https://github.com/llvm/llvm-project/commit/1583158042a7e1f8b4f5194b1db362328e6902f3.diff

[clang] f582479 - [BPF] add missing attribute in pragma-attribute-supported-attributes-list.test

2019-11-13 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2019-11-13T08:50:42-08:00 New Revision: f5824799f612d9d3f19470a60533c2872bcc096b URL: https://github.com/llvm/llvm-project/commit/f5824799f612d9d3f19470a60533c2872bcc096b DIFF: https://github.com/llvm/llvm-project/commit/f5824799f612d9d3f19470a60533c2872bcc096b.diff

[clang] 4e2ce22 - [BPF] Add preserve_access_index attribute for record definition

2019-11-13 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2019-11-13T08:23:44-08:00 New Revision: 4e2ce228ae7954a6499fbb8e4995c13ac8b60f9a URL: https://github.com/llvm/llvm-project/commit/4e2ce228ae7954a6499fbb8e4995c13ac8b60f9a DIFF: https://github.com/llvm/llvm-project/commit/4e2ce228ae7954a6499fbb8e4995c13ac8b60f9a.diff

[clang] 9434360 - Revert "[BPF] Add preserve_access_index attribute for record definition"

2019-11-09 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2019-11-09T08:32:44-08:00 New Revision: 9434360401218ae02aaea1fbb53a42bc3af2bc76 URL: https://github.com/llvm/llvm-project/commit/9434360401218ae02aaea1fbb53a42bc3af2bc76 DIFF: https://github.com/llvm/llvm-project/commit/9434360401218ae02aaea1fbb53a42bc3af2bc76.diff

[clang] 4a5aa1a - [BPF] Add preserve_access_index attribute for record definition

2019-11-09 Thread Yonghong Song via cfe-commits
Author: Yonghong Song Date: 2019-11-09T08:17:12-08:00 New Revision: 4a5aa1a7bf8b1714b817ede8e09cd28c0784228a URL: https://github.com/llvm/llvm-project/commit/4a5aa1a7bf8b1714b817ede8e09cd28c0784228a DIFF: https://github.com/llvm/llvm-project/commit/4a5aa1a7bf8b1714b817ede8e09cd28c0784228a.diff

r374099 - [BPF] do compile-once run-everywhere relocation for bitfields

2019-10-08 Thread Yonghong Song via cfe-commits
Author: yhs Date: Tue Oct 8 11:23:17 2019 New Revision: 374099 URL: http://llvm.org/viewvc/llvm-project?rev=374099&view=rev Log: [BPF] do compile-once run-everywhere relocation for bitfields A bpf specific clang intrinsic is introduced: u32 __builtin_preserve_field_info(member_access, info_ki

r372516 - [CLANG][BPF] permit any argument type for __builtin_preserve_access_index()

2019-09-22 Thread Yonghong Song via cfe-commits
Author: yhs Date: Sun Sep 22 10:33:48 2019 New Revision: 372516 URL: http://llvm.org/viewvc/llvm-project?rev=372516&view=rev Log: [CLANG][BPF] permit any argument type for __builtin_preserve_access_index() Commit c15aa241f821 ("[CLANG][BPF] change __builtin_preserve_access_index() signature") cha

r372294 - [CLANG][BPF] change __builtin_preserve_access_index() signature

2019-09-18 Thread Yonghong Song via cfe-commits
Author: yhs Date: Wed Sep 18 19:59:43 2019 New Revision: 372294 URL: http://llvm.org/viewvc/llvm-project?rev=372294&view=rev Log: [CLANG][BPF] change __builtin_preserve_access_index() signature The clang intrinsic __builtin_preserve_access_index() currently has signature: const void * __builtin

r367724 - [BPF] annotate DIType metadata for builtin preseve_array_access_index()

2019-08-02 Thread Yonghong Song via cfe-commits
Author: yhs Date: Fri Aug 2 14:28:28 2019 New Revision: 367724 URL: http://llvm.org/viewvc/llvm-project?rev=367724&view=rev Log: [BPF] annotate DIType metadata for builtin preseve_array_access_index() Previously, debuginfo types are annotated to IR builtin preserve_struct_access_index() and pres

Re: r366076 - fix unnamed fiefield issue and add tests for __builtin_preserve_access_index intrinsic

2019-07-16 Thread Yonghong Song via cfe-commits
On 7/16/19 11:03 AM, Nick Desaulniers wrote: > On Tue, Jul 16, 2019 at 11:02 AM Nick Desaulniers > wrote: >> >> On Mon, Jul 15, 2019 at 5:13 PM Eric Christopher wrote: >>> >>> I'm going to cheat and make Nick do it :) >> >> I suspect that Eric still compiles LLVM by specifying all object files

r366231 - fix unnamed fiefield issue and add tests for __builtin_preserve_access_index intrinsic

2019-07-16 Thread Yonghong Song via cfe-commits
Author: yhs Date: Tue Jul 16 10:24:33 2019 New Revision: 366231 URL: http://llvm.org/viewvc/llvm-project?rev=366231&view=rev Log: fix unnamed fiefield issue and add tests for __builtin_preserve_access_index intrinsic The original commit is r366076. It is temporarily reverted (r366155) due to tes

Re: r366076 - fix unnamed fiefield issue and add tests for __builtin_preserve_access_index intrinsic

2019-07-15 Thread Yonghong Song via cfe-commits
Transmitting file data ..done Committing transaction... Committed revision 366155. Committed ba7decf8c91 to svn. Since the testcase was causing problems in non-assert builds. Feel free to recommit when you fix that :) Thanks! -eric On Mon, Jul 1

r366076 - fix unnamed fiefield issue and add tests for __builtin_preserve_access_index intrinsic

2019-07-15 Thread Yonghong Song via cfe-commits
Author: yhs Date: Mon Jul 15 08:42:41 2019 New Revision: 366076 URL: http://llvm.org/viewvc/llvm-project?rev=366076&view=rev Log: fix unnamed fiefield issue and add tests for __builtin_preserve_access_index intrinsic This is a followup patch for https://reviews.llvm.org/D61809. Handle unnamed bi

r365438 - [BPF] Preserve debuginfo array/union/struct type/access index

2019-07-08 Thread Yonghong Song via cfe-commits
Author: yhs Date: Mon Jul 8 21:21:50 2019 New Revision: 365438 URL: http://llvm.org/viewvc/llvm-project?rev=365438&view=rev Log: [BPF] Preserve debuginfo array/union/struct type/access index For background of BPF CO-RE project, please refer to http://vger.kernel.org/bpfconf2019.html In summary

r365436 - Revert "[BPF] Preserve debuginfo array/union/struct type/access index"

2019-07-08 Thread Yonghong Song via cfe-commits
Author: yhs Date: Mon Jul 8 21:15:12 2019 New Revision: 365436 URL: http://llvm.org/viewvc/llvm-project?rev=365436&view=rev Log: Revert "[BPF] Preserve debuginfo array/union/struct type/access index" This reverts commit r365435. Forgot adding the Differential Revision link. Will add to the comm

r365435 - [BPF] Preserve debuginfo array/union/struct type/access index

2019-07-08 Thread Yonghong Song via cfe-commits
Author: yhs Date: Mon Jul 8 21:04:21 2019 New Revision: 365435 URL: http://llvm.org/viewvc/llvm-project?rev=365435&view=rev Log: [BPF] Preserve debuginfo array/union/struct type/access index For background of BPF CO-RE project, please refer to http://vger.kernel.org/bpfconf2019.html In summary

r359310 - [BPF] do not generate predefined macro bpf

2019-04-26 Thread Yonghong Song via cfe-commits
Author: yhs Date: Fri Apr 26 08:35:51 2019 New Revision: 359310 URL: http://llvm.org/viewvc/llvm-project?rev=359310&view=rev Log: [BPF] do not generate predefined macro bpf "DefineStd(Builder, "bpf", Opts)" generates the following three macros: bpf __bpf __bpf__ and the macro "bpf" is due t

r334839 - bpf: recognize target specific option -mattr=dwarfris in clang

2018-06-15 Thread Yonghong Song via cfe-commits
Author: yhs Date: Fri Jun 15 08:53:31 2018 New Revision: 334839 URL: http://llvm.org/viewvc/llvm-project?rev=334839&view=rev Log: bpf: recognize target specific option -mattr=dwarfris in clang The following is the usage example with clang: bash-4.2$ clang -target bpf -O2 -g -c -Xclang -target-f

r329823 - bpf: accept all asm register names

2018-04-12 Thread Yonghong Song via cfe-commits
Author: yhs Date: Wed Apr 11 09:08:00 2018 New Revision: 329823 URL: http://llvm.org/viewvc/llvm-project?rev=329823&view=rev Log: bpf: accept all asm register names Sometimes when people compile bpf programs with "clang ... -target bpf ...", the kernel header files may contain host arch inline as

r325996 - bpf: Hook target feature "alu32" with LLVM

2018-02-24 Thread Yonghong Song via cfe-commits
Author: yhs Date: Fri Feb 23 15:55:29 2018 New Revision: 325996 URL: http://llvm.org/viewvc/llvm-project?rev=325996&view=rev Log: bpf: Hook target feature "alu32" with LLVM LLVM has supported a new target feature "alu32" which could be enabled or disabled by "-mattr=[+|-]alu32" when using llc. T

r311523 - bpf: add -mcpu=# support for bpf

2017-08-23 Thread Yonghong Song via cfe-commits
Author: yhs Date: Tue Aug 22 21:26:17 2017 New Revision: 311523 URL: http://llvm.org/viewvc/llvm-project?rev=311523&view=rev Log: bpf: add -mcpu=# support for bpf -mcpu=# will support: . generic: the default insn set . v1: insn set version 1, the same as generic . v2: insn set version 2, ve