Page MenuHomePhabricator

andrewrk (Andrew Kelley)
User

Projects

User does not belong to any projects.

User Details

User Since
Jul 26 2017, 11:36 PM (296 w, 2 d)

Recent Activity

Jan 31 2023

andrewrk accepted D142963: [AArch64] Handle negative architecture features.

It looks like this has these odd behaviours:

  • -target-feature +v9.3a -target-feature -v9.2a will remove v9.2a but add all the dependent features of both v9.3a and v9.2a. It also doesn't remove v9.3a which implies v9.2a.
  • -target-feature -v9.2a -target-feature +v9.3a will add the v9.2a back, and also add all the dependent features of both v9.3a and v9.2a.
  • -target-feature +v9.3a -target-feature -v9.3a will remove v9.3a but add all the dependent features of v9.3a.

This seems like a bit of a minefield. Is there even a use case for negative architectural features?

Jan 31 2023, 12:12 PM · Restricted Project, Restricted Project

Dec 5 2022

andrewrk added a comment to D139102: [AArch64] Inline AArch64TargetParser.def.
Dec 5 2022, 9:06 PM · Restricted Project, Restricted Project, Restricted Project

Sep 19 2022

andrewrk added a comment to D128465: [llvm] add zstd to `llvm::compression` namespace.

Compiler infrastructure should not assume the existence of a Linux distribution. The portable way is simple and can easily be supported. One should be able to install $prefix/lib/libzstd.a and $prefix/include/zstd.h, then have that prefix searched as part of the standard CMAKE_PREFIX_PATH.

Sep 19 2022, 12:28 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project
andrewrk added a comment to D128465: [llvm] add zstd to `llvm::compression` namespace.
if(LLVM_ENABLE_ZSTD)
  list(APPEND imported_libs zstd::libzstd_shared)
endif()
Sep 19 2022, 12:09 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project, Restricted Project

Jul 5 2022

andrewrk accepted D129164: [AsmPrinter] Fix bit pattern for i1 vectors..
Jul 5 2022, 4:00 PM · Restricted Project, Restricted Project

Feb 10 2022

andrewrk added a comment to D119380: [lld][CMake] Add a warning about the Standalone build being deprecated.

Sounds like you're trying hard to make me step down from contributing to LLVM anymore.

Feb 10 2022, 12:27 PM · Restricted Project, Restricted Project

Feb 9 2022

andrewrk added a comment to D119380: [lld][CMake] Add a warning about the Standalone build being deprecated.

Sounds good to me

Feb 9 2022, 3:44 PM · Restricted Project, Restricted Project
andrewrk added a comment to D119380: [lld][CMake] Add a warning about the Standalone build being deprecated.

My goal is to use the same method for compiling llvm, clang, and lld as package maintainers, so that we don't get any "surprises" when someone packages our application using system llvm, lld, clang packages. I don't really care which way is the correct way to compile the software but the existence of multiple ways to do it creates problems for me.

Feb 9 2022, 3:31 PM · Restricted Project, Restricted Project
andrewrk added a comment to D119380: [lld][CMake] Add a warning about the Standalone build being deprecated.

Why stop there? Just keep it simple and fail the build.

Feb 9 2022, 3:22 PM · Restricted Project, Restricted Project

Jun 1 2021

andrewrk added a comment to D103370: WindowsSupport.h: do not depend on private config header.

Andrew Kelley <andrew@ziglang.org>

Jun 1 2021, 12:05 PM · Restricted Project
andrewrk added a comment to D103370: WindowsSupport.h: do not depend on private config header.

Thank you for having a look, Adrian! I would appreciate if you or someone else could commit for me since I do not have write access.

Jun 1 2021, 11:45 AM · Restricted Project

May 29 2021

andrewrk added a comment to D103370: WindowsSupport.h: do not depend on private config header.

Confirmed, I have tested this change and it solves the problem.

May 29 2021, 2:11 PM · Restricted Project
andrewrk added a comment to D103370: WindowsSupport.h: do not depend on private config header.

I am still in the process of testing this change.

May 29 2021, 1:46 PM · Restricted Project
andrewrk updated the summary of D103370: WindowsSupport.h: do not depend on private config header.
May 29 2021, 1:45 PM · Restricted Project
andrewrk requested review of D103370: WindowsSupport.h: do not depend on private config header.
May 29 2021, 1:44 PM · Restricted Project

Sep 18 2020

andrewrk accepted D78658: [clang][Frontend] Add missing error handling.

ping?

Sep 18 2020, 1:10 AM · Restricted Project

Apr 4 2020

andrewrk raised a concern with rL254199: Revert Sparc and SparcV9 to external assembler. Now that the CPU.

I was not aware of any reliance on a system assembler within LLVM. My previous understanding was that one of the features of LLVM is to provide assemblers for all of these architectures, which is useful for cross compiling.

Apr 4 2020, 5:34 PM

Sep 11 2019

andrewrk accepted D67455: [Clang][CodeGen] support alias attribute w/ gnu_inline.
Sep 11 2019, 7:21 PM · Restricted Project, Restricted Project
andrewrk requested changes to D67455: [Clang][CodeGen] support alias attribute w/ gnu_inline.
Sep 11 2019, 11:52 AM · Restricted Project, Restricted Project

May 27 2019

andrewrk accepted D62475: [DebugInfo] Change DIEnumerator payload type from int64_t to APInt.

LGTM

May 27 2019, 7:52 AM · debug-info, Restricted Project

May 21 2019

andrewrk accepted D62185: [mach-o] Extend LC_DATA_IN_CODE support to x86_64.

LGTM

May 21 2019, 9:12 AM · Restricted Project

Apr 16 2019

andrewrk added a comment to D60758: Add an assertion that parallelForEach doesn't nest..

That makes sense 👍

Apr 16 2019, 1:22 AM · Restricted Project
andrewrk accepted D60758: Add an assertion that parallelForEach doesn't nest..

This will be nice to prevent bugs in the future. Should it be behind #ifndef NDEBUG though? Presumably if assertions are disabled then this bug would be expected to be undefined behavior and avoid the overhead of the thread local variable, is that right?

Apr 16 2019, 1:12 AM · Restricted Project
andrewrk accepted D60757: Fix a crash bug caused by a nested call of parallelForEach..

I tested this and confirm that it solves the bug (which I reported).

Apr 16 2019, 1:02 AM · Restricted Project

Feb 13 2019

andrewrk accepted D58204: CMake: Fix stand-alone clang builds since r353268.

I confirm this solves the issue.

Feb 13 2019, 1:25 PM · Restricted Project, Restricted Project

Feb 1 2019

andrewrk added a comment to D57586: Release Notes: Add Zig to External Open Source Projects Using LLVM 8.

Thanks Hans. I'll need you to do it on my behalf as I do not have commit privileges.

Feb 1 2019, 7:10 AM · Restricted Project
andrewrk created D57586: Release Notes: Add Zig to External Open Source Projects Using LLVM 8.
Feb 1 2019, 7:00 AM · Restricted Project

Jan 4 2019

andrewrk added inline comments to D56297: [DWARFUnit] Don't assume basic types..
Jan 4 2019, 3:41 PM
andrewrk added inline comments to D56297: [DWARFUnit] Don't assume basic types..
Jan 4 2019, 1:00 PM
andrewrk added a comment to D56297: [DWARFUnit] Don't assume basic types..

Is the problem that it is a SubroutineType, but not a function *pointer*?
Generally, if the Verifier accepts it we ought to not crash, so this seems to be okay, but it might be worth asking whether this is really what you want your frontend to be creating since subroutinetypes don't have a size, etc.

Jan 4 2019, 12:56 PM

Dec 30 2018

andrewrk added a comment to D54667: [CodeView] Emit proper debug info for ref-qualified member functions.
In D54667#1341372, @rnk wrote:

In that case, you might want to add the DINode::FlagStaticMember flag to all your methods. If a DISubprogram lists a DICompositeType as its scope or is used as an element of the composite type, it gets treated as a C++-style method where the first argument is assumed to be 'this'. That's a very C++-centric way to do things, so it might be nicer if we explicitly marked C++ instance methods, but that's the way things are today and changing it would require thinking about backwards compatibility. >_>

The benefit of explicitly marking everything as a "static" method for zig is that if the first argument happens to be a pointer type it won't end up looking like an instance method.

Dec 30 2018, 10:27 AM

Dec 26 2018

andrewrk added a comment to D54667: [CodeView] Emit proper debug info for ref-qualified member functions.
In D54667#1340985, @rnk wrote:

We can change the code to avoid the crash, but what debug info did you want clang to emit? It seems like the best way to describe StructWithNoFields_add is as a static method of the class StructWithNoFields, since it doesn't appear to have a 'this' parameter.

Dec 26 2018, 5:55 PM

Dec 23 2018

andrewrk added a comment to D54667: [CodeView] Emit proper debug info for ref-qualified member functions.

I think this patch broke Zig's tests:

Dec 23 2018, 4:14 PM

Dec 4 2018

andrewrk updated the diff for D55276: ELF: allow non allocated sections to go into allocated sections.

Added Rui's test case. Thank you for helping me with that. Please note that I do not have commit privileges and so someone will have to merge this on my behalf.

Dec 4 2018, 10:42 AM
andrewrk updated the summary of D55276: ELF: allow non allocated sections to go into allocated sections.
Dec 4 2018, 10:41 AM
andrewrk created D55276: ELF: allow non allocated sections to go into allocated sections.
Dec 4 2018, 8:41 AM

Aug 27 2018

andrewrk added a comment to D51265: Headers: fix collisions with .h files of other projects.

What is this change actually solving? Even if the typedef is actually redundant, it shouldn't cause a compiler error: redundant typedefs are allowed in the latest versions of the C and C++ standards. (And even if you were targeting an earlier standard, we normally suppress warnings in system headers.)

Aug 27 2018, 8:50 PM · Restricted Project

Aug 25 2018

andrewrk updated the diff for D51265: Headers: fix collisions with .h files of other projects.

Addressed review feedback

Aug 25 2018, 8:24 PM · Restricted Project
andrewrk created D51265: Headers: fix collisions with .h files of other projects.
Aug 25 2018, 7:45 PM · Restricted Project

Aug 22 2018

andrewrk created D51118: Release Notes: Add Zig to External Open Source Projects Using LLVM 7.
Aug 22 2018, 12:05 PM

Jul 26 2018

andrewrk added a comment to D49856: [COFF] clean up global resources after completion.

Thanks. Can you do the commit? I do not have commit access.

Jul 26 2018, 10:03 AM
andrewrk created D49856: [COFF] clean up global resources after completion.
Jul 26 2018, 8:15 AM

Jul 9 2018

andrewrk added a comment to D43211: [WebAssembly] promote from experimental to normal target.

Ping

Jul 9 2018, 7:13 AM

Jun 15 2018

andrewrk added a comment to D43211: [WebAssembly] promote from experimental to normal target.

Ping. Is it time yet? Looks like the stated blockers are resolved now.

Jun 15 2018, 10:45 AM

Apr 11 2018

andrewrk accepted D45536: Do not keep shared symbols to garbage-collected eliminated DSOs..

I confirm that this fixes https://bugs.llvm.org/show_bug.cgi?id=36991

Apr 11 2018, 3:00 PM

Mar 30 2018

andrewrk created D45106: [Build] Use LIBXML2_LIBRARIES from find_package.
Mar 30 2018, 1:28 PM · Restricted Project

Mar 2 2018

andrewrk added a comment to D43211: [WebAssembly] promote from experimental to normal target.

Would llvm interact with grow_memory or memory_size instructions? Seems like that would be the frontend or standard library's job. It's not in LLVM's business to interact with the "OS" by allocating memory.

Mar 2 2018, 9:55 AM
andrewrk added a comment to D40526: [WebAssembly] Change size_t to `unsigned long`.

Is there anything stopping this from landing in svn?

Mar 2 2018, 9:55 AM

Feb 19 2018

andrewrk abandoned D43368: add llvm.coro.sizeof intrinsic.

Never mind these changes. I've redesigned how coroutines will work in Zig and they no longer depend on these changes.

Feb 19 2018, 5:34 PM

Feb 15 2018

andrewrk updated the summary of D43368: add llvm.coro.sizeof intrinsic.
Feb 15 2018, 8:27 PM
andrewrk created D43368: add llvm.coro.sizeof intrinsic.
Feb 15 2018, 8:27 PM

Feb 12 2018

andrewrk added a reviewer for D43211: [WebAssembly] promote from experimental to normal target: sbc100.
Feb 12 2018, 2:40 PM
andrewrk retitled D43211: [WebAssembly] promote from experimental to normal target from promote WebAssembly from experimental to normal target to [WebAssembly] promote from experimental to normal target.
Feb 12 2018, 2:40 PM
andrewrk created D43211: [WebAssembly] promote from experimental to normal target.
Feb 12 2018, 2:37 PM

Jan 16 2018

andrewrk added a comment to D41875: docs: add Zig to External Open Source Projects.

Hans, thank you for reviewing. I do not have commit access; would you mind committing it for me, in whatever order you prefer?

Jan 16 2018, 7:17 AM

Jan 11 2018

andrewrk updated the diff for D41875: docs: add Zig to External Open Source Projects.

rebase

Jan 11 2018, 9:23 AM

Jan 9 2018

andrewrk created D41875: docs: add Zig to External Open Source Projects.
Jan 9 2018, 11:47 AM

Jan 8 2018

andrewrk added a comment to D41803: ldd::COFF: initalize ErrorHandler with CanExitEarly value.

I would have selected a repository but the instructions explicitly say not to:

Leave the Repository field blank.

Jan 8 2018, 7:30 AM

Jan 6 2018

andrewrk added a comment to D41803: ldd::COFF: initalize ErrorHandler with CanExitEarly value.

I'll be careful next time, thanks. I used the web interface. Arcanist seemed more involved, but if that is preferable I can do it next time.

Jan 6 2018, 9:18 PM
andrewrk added a comment to D41803: ldd::COFF: initalize ErrorHandler with CanExitEarly value.

Thank you, I will CC llvm-commits next time. I followed these instructions: https://llvm.org/docs/Phabricator.html

Jan 6 2018, 10:34 AM
andrewrk added a comment to D41803: ldd::COFF: initalize ErrorHandler with CanExitEarly value.

I would also like to request that this is backported to the release_60 branch.

Jan 6 2018, 10:08 AM
andrewrk created D41803: ldd::COFF: initalize ErrorHandler with CanExitEarly value.
Jan 6 2018, 10:07 AM

Nov 2 2017

andrewrk added a comment to D39514: Use allocate_file in FileOutputBuffer to avoid possible bus error..

Which we prefer, maximum IO performance or a reliable error handling?

Nov 2 2017, 6:48 AM

Oct 23 2017

andrewrk accepted D39202: lld::COFF: better behavior when using as a library.
Oct 23 2017, 12:56 PM
andrewrk awarded D39202: lld::COFF: better behavior when using as a library a Like token.
Oct 23 2017, 12:53 PM

Aug 18 2017

andrewrk added a comment to D35387: [MACH-O] Fix the ASM code generated for __stub_helpers section.
  • Can we have this even without tests?
    • Can we have this in 5.0.0?
Aug 18 2017, 6:17 PM · lld