Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

rmaz (Richard Howell)
User

Projects

User does not belong to any projects.

User Details

User Since
Sep 13 2019, 1:09 PM (211 w, 4 d)

Recent Activity

May 25 2023

rmaz accepted D151398: [clang] Make `FileEntryRef::getDir()` return the as-requested `DirectoryEntryRef`.

LGTM

May 25 2023, 5:42 AM · Restricted Project, Restricted Project

Apr 11 2023

rmaz abandoned D143414: [clang] refactor FileManager::GetUniqueIDMapping.
Apr 11 2023, 7:15 AM · Restricted Project, Restricted Project
rmaz abandoned D142724: [clang] use FileEntryRef for SUBMODULE_TOPHEADER.
Apr 11 2023, 7:15 AM · Restricted Project, Restricted Project

Apr 5 2023

rmaz committed rG8ee5029b225b: [clang] don't serialize MODULE_DIRECTORY with ModuleFileHomeIsCwd (authored by rmaz).
[clang] don't serialize MODULE_DIRECTORY with ModuleFileHomeIsCwd
Apr 5 2023, 7:20 AM · Restricted Project, Restricted Project
rmaz closed D147561: [clang] don't serialize MODULE_DIRECTORY with ModuleFileHomeIsCwd.
Apr 5 2023, 7:20 AM · Restricted Project, Restricted Project

Apr 4 2023

rmaz updated the summary of D147561: [clang] don't serialize MODULE_DIRECTORY with ModuleFileHomeIsCwd.
Apr 4 2023, 12:38 PM · Restricted Project, Restricted Project
rmaz added reviewers for D147561: [clang] don't serialize MODULE_DIRECTORY with ModuleFileHomeIsCwd: keith, nuriamari, drodriguez.
Apr 4 2023, 12:37 PM · Restricted Project, Restricted Project
rmaz requested review of D147561: [clang] don't serialize MODULE_DIRECTORY with ModuleFileHomeIsCwd.
Apr 4 2023, 12:37 PM · Restricted Project, Restricted Project

Feb 14 2023

rmaz updated the diff for D143414: [clang] refactor FileManager::GetUniqueIDMapping.

remove header_file_size()

Feb 14 2023, 6:54 AM · Restricted Project, Restricted Project

Feb 8 2023

rmaz added a comment to D143414: [clang] refactor FileManager::GetUniqueIDMapping.

This should allow the path serialization of input files to use the paths used when looking up a file entry, instead of the last reference.

Isn't this at odds with not having the VFS-mapped paths?

It's not obvious to me why we want these specific semantics. Elsewhere we have tried to preserve the virtual paths as well as the vfsoverlay files needed to interpret them. Is there a reason the current approach is better? I feel like there may be context here I'm lacking

Feb 8 2023, 6:14 AM · Restricted Project, Restricted Project

Feb 7 2023

rmaz updated the diff for D143414: [clang] refactor FileManager::GetUniqueIDMapping.

Use FileEntryRef, rename method

Feb 7 2023, 6:35 AM · Restricted Project, Restricted Project

Feb 6 2023

rmaz updated the summary of D143414: [clang] refactor FileManager::GetUniqueIDMapping.
Feb 6 2023, 1:06 PM · Restricted Project, Restricted Project
rmaz updated the diff for D143414: [clang] refactor FileManager::GetUniqueIDMapping.

Don't return virtual file entries

Feb 6 2023, 1:01 PM · Restricted Project, Restricted Project
rmaz added inline comments to D143414: [clang] refactor FileManager::GetUniqueIDMapping.
Feb 6 2023, 10:34 AM · Restricted Project, Restricted Project
rmaz updated the diff for D143414: [clang] refactor FileManager::GetUniqueIDMapping.

Sort by UIDs, then Name

Feb 6 2023, 9:52 AM · Restricted Project, Restricted Project
rmaz added a comment to D142780: [clang] NFCI: Use FileEntryRef in FileManager's UID mapping.

Sounds like the easies way out is serializing all FileEntryRef objects we know in deterministic order.

Feb 6 2023, 9:24 AM · Restricted Project, Restricted Project
rmaz added reviewers for D143414: [clang] refactor FileManager::GetUniqueIDMapping: jansvoboda11, benlangmuir, drodriguez.
Feb 6 2023, 9:23 AM · Restricted Project, Restricted Project
rmaz requested review of D143414: [clang] refactor FileManager::GetUniqueIDMapping.
Feb 6 2023, 9:22 AM · Restricted Project, Restricted Project

Jan 27 2023

rmaz added a comment to D142780: [clang] NFCI: Use FileEntryRef in FileManager's UID mapping.

If compiling a single pcm accesses multiple hard links with the same UID, then it would not be possible to use the set of UIDs to get the "right path". At best we could make it get a deterministic path -- e.g. if we tracked the order of access.

Jan 27 2023, 2:17 PM · Restricted Project, Restricted Project
rmaz added a comment to D142780: [clang] NFCI: Use FileEntryRef in FileManager's UID mapping.

I think if we want to change this to FileEntryRef it needs to be deterministic which ref you get.

Jan 27 2023, 1:52 PM · Restricted Project, Restricted Project
rmaz accepted D142780: [clang] NFCI: Use FileEntryRef in FileManager's UID mapping.
Jan 27 2023, 12:22 PM · Restricted Project, Restricted Project
rmaz added inline comments to D142724: [clang] use FileEntryRef for SUBMODULE_TOPHEADER.
Jan 27 2023, 12:21 PM · Restricted Project, Restricted Project
rmaz added inline comments to D142724: [clang] use FileEntryRef for SUBMODULE_TOPHEADER.
Jan 27 2023, 10:07 AM · Restricted Project, Restricted Project
rmaz updated the diff for D142724: [clang] use FileEntryRef for SUBMODULE_TOPHEADER.

Use FileEntryRef for AddTopHeader()

Jan 27 2023, 9:55 AM · Restricted Project, Restricted Project
rmaz added reviewers for D142724: [clang] use FileEntryRef for SUBMODULE_TOPHEADER: drodriguez, jansvoboda11.
Jan 27 2023, 7:33 AM · Restricted Project, Restricted Project
rmaz requested review of D142724: [clang] use FileEntryRef for SUBMODULE_TOPHEADER.
Jan 27 2023, 7:31 AM · Restricted Project, Restricted Project

Jan 20 2023

rmaz committed rG75fbb5d2238f: [clang][nfc] refactor Module::Header to use OptionalFileEntryRef (authored by rmaz).
[clang][nfc] refactor Module::Header to use OptionalFileEntryRef
Jan 20 2023, 7:23 AM · Restricted Project, Restricted Project
rmaz closed D142113: [clang][nfc] refactor Module::Header to use OptionalFileEntryRef.
Jan 20 2023, 7:23 AM · Restricted Project, Restricted Project

Jan 19 2023

rmaz updated the diff for D142113: [clang][nfc] refactor Module::Header to use OptionalFileEntryRef.

rebase on last successful build: https://buildkite.com/llvm-project/llvm-main/builds/6356

Jan 19 2023, 12:10 PM · Restricted Project, Restricted Project
rmaz updated the diff for D142113: [clang][nfc] refactor Module::Header to use OptionalFileEntryRef.

address comments

Jan 19 2023, 9:53 AM · Restricted Project, Restricted Project
rmaz abandoned D142028: [clang] remove SUBMODULE_TOPHEADER.

Its going to be less work to refactor TopheaderNames to use FileEntryRef, so went that way instead. First step is here: https://reviews.llvm.org/D142113

Jan 19 2023, 6:55 AM · Restricted Project, Restricted Project
rmaz updated the summary of D142113: [clang][nfc] refactor Module::Header to use OptionalFileEntryRef.
Jan 19 2023, 6:54 AM · Restricted Project, Restricted Project
rmaz requested review of D142113: [clang][nfc] refactor Module::Header to use OptionalFileEntryRef.
Jan 19 2023, 6:52 AM · Restricted Project, Restricted Project

Jan 18 2023

rmaz added a comment to D142028: [clang] remove SUBMODULE_TOPHEADER.

Is it reasonable to at least have an alternative implementation for it (e.g. from the module headers find the headers that were not included from other headers), not sure if it'd be straightforward or not.

Jan 18 2023, 12:15 PM · Restricted Project, Restricted Project
rmaz added a comment to D142028: [clang] remove SUBMODULE_TOPHEADER.

@akyrtzi it looks like you added this field a while back. Do you know if there are still consumers for the the libclang API, do we need to keep this field around?

Jan 18 2023, 8:37 AM · Restricted Project, Restricted Project
rmaz added reviewers for D142028: [clang] remove SUBMODULE_TOPHEADER: akyrtzi, dexonsmith.
Jan 18 2023, 8:36 AM · Restricted Project, Restricted Project
rmaz requested review of D142028: [clang] remove SUBMODULE_TOPHEADER.
Jan 18 2023, 8:32 AM · Restricted Project, Restricted Project

Oct 3 2022

rmaz added a comment to D133586: [clang] initialize type qualifiers for FunctionNoProtoType.

How correct is it to access isConst, isVolatile, isRestrict for FunctionNoProtoType? Yes, we can provide some default value but I'm curious if accessing that default value is correct.

For the record, I've tried to fix the same problem in https://reviews.llvm.org/D104963 in a different way.

Oct 3 2022, 1:03 PM · Restricted Project, Restricted Project

Sep 30 2022

rmaz accepted D134911: [clang][DebugInfo] Respect fmodule-file-home-is-cwd in skeleton CUs for clang modules.

Nice, LGTM, thanks!

Sep 30 2022, 9:58 AM · Restricted Project, Restricted Project

Sep 26 2022

rmaz committed rG1f451a8bd6f3: [clang] initialize type qualifiers for FunctionNoProtoType (authored by rmaz).
[clang] initialize type qualifiers for FunctionNoProtoType
Sep 26 2022, 9:49 AM · Restricted Project, Restricted Project
rmaz closed D133586: [clang] initialize type qualifiers for FunctionNoProtoType.
Sep 26 2022, 9:49 AM · Restricted Project, Restricted Project
rmaz updated the diff for D133586: [clang] initialize type qualifiers for FunctionNoProtoType.

remove else case

Sep 26 2022, 7:20 AM · Restricted Project, Restricted Project

Sep 23 2022

rmaz updated the diff for D133586: [clang] initialize type qualifiers for FunctionNoProtoType.

Remove unnecessary friend class

Sep 23 2022, 9:24 AM · Restricted Project, Restricted Project
rmaz updated the diff for D133586: [clang] initialize type qualifiers for FunctionNoProtoType.

Return default Qualifiers for FunctionNoProtoType

Sep 23 2022, 7:48 AM · Restricted Project, Restricted Project

Sep 22 2022

rmaz updated the diff for D133586: [clang] initialize type qualifiers for FunctionNoProtoType.

add -std=c89 to test

Sep 22 2022, 1:13 PM · Restricted Project, Restricted Project
rmaz added inline comments to D133586: [clang] initialize type qualifiers for FunctionNoProtoType.
Sep 22 2022, 1:12 PM · Restricted Project, Restricted Project
rmaz added a comment to D133586: [clang] initialize type qualifiers for FunctionNoProtoType.

This is why I'm wondering how we're hitting this problem in the first place. C++ shouldn't be able to create a function without a prototype so why does the ODR hash matter (do we use that in C and I just wasn't aware of it)?

Sep 22 2022, 1:06 PM · Restricted Project, Restricted Project
rmaz updated the diff for D133586: [clang] initialize type qualifiers for FunctionNoProtoType.

rebase

Sep 22 2022, 11:20 AM · Restricted Project, Restricted Project

Sep 21 2022

rmaz updated the diff for D133586: [clang] initialize type qualifiers for FunctionNoProtoType.

Specify target and language for test

Sep 21 2022, 8:57 AM · Restricted Project, Restricted Project

Sep 20 2022

rmaz updated the diff for D133586: [clang] initialize type qualifiers for FunctionNoProtoType.

Add unit test for type qualifiers

Sep 20 2022, 1:52 PM · Restricted Project, Restricted Project

Sep 13 2022

rmaz added a comment to D133586: [clang] initialize type qualifiers for FunctionNoProtoType.

Do you have a test case for this?

Was struggling to think of a good one. How about a test that repeatedly generates a pcm for a func decl with no params and checks if the DECL_FUNCTION record is the same?

Have you looked at clang/test/Modules/odr_hash.cpp? It's where most of the ODR hash testing takes place by testing that Decls can be merged properly instead of checking the contents of pcm files.. Using #if define, it creates multiple modules from the same file. I would suggest creating two functions in each of the modules, then in the main file, using the function to force it to be loaded from the modules and merged together. The test should fail with the current Clang, but pass with your patch. You may need to create your test file if you need different compiler options.

Sep 13 2022, 3:00 PM · Restricted Project, Restricted Project
rmaz retitled D133586: [clang] initialize type qualifiers for FunctionNoProtoType from [clang] do not hash undefined qualifiers for FunctionNoProtoType to [clang] initialize type qualifiers for FunctionNoProtoType.
Sep 13 2022, 2:56 PM · Restricted Project, Restricted Project
rmaz updated the diff for D133586: [clang] initialize type qualifiers for FunctionNoProtoType.

zero out qual types in constructor

Sep 13 2022, 2:55 PM · Restricted Project, Restricted Project

Sep 12 2022

rmaz planned changes to D133586: [clang] initialize type qualifiers for FunctionNoProtoType.

I think it is probably safer to zero out the FastTypeQuals instead.

Sep 12 2022, 2:48 PM · Restricted Project, Restricted Project
rmaz committed rG3c1b42347b3a: [clang] sort additional module maps when serializing (authored by rmaz).
[clang] sort additional module maps when serializing
Sep 12 2022, 12:01 PM · Restricted Project, Restricted Project
rmaz closed D133611: [clang] sort additional module maps when serializing.
Sep 12 2022, 12:01 PM · Restricted Project, Restricted Project
rmaz updated the diff for D133611: [clang] sort additional module maps when serializing.

clang-format

Sep 12 2022, 9:39 AM · Restricted Project, Restricted Project
rmaz updated the diff for D133611: [clang] sort additional module maps when serializing.

rebase

Sep 12 2022, 8:30 AM · Restricted Project, Restricted Project

Sep 9 2022

rmaz added a comment to D133586: [clang] initialize type qualifiers for FunctionNoProtoType.

Do you have a test case for this?

Sep 9 2022, 2:00 PM · Restricted Project, Restricted Project
rmaz added reviewers for D133611: [clang] sort additional module maps when serializing: drodriguez, benlangmuir, rsmith.
Sep 9 2022, 1:22 PM · Restricted Project, Restricted Project
rmaz requested review of D133611: [clang] sort additional module maps when serializing.
Sep 9 2022, 1:17 PM · Restricted Project, Restricted Project
rmaz updated the summary of D133586: [clang] initialize type qualifiers for FunctionNoProtoType.
Sep 9 2022, 10:20 AM · Restricted Project, Restricted Project
rmaz updated the diff for D133586: [clang] initialize type qualifiers for FunctionNoProtoType.

Move code to VisitFunctionProtoType instead of branch

Sep 9 2022, 10:12 AM · Restricted Project, Restricted Project
rmaz updated the summary of D133586: [clang] initialize type qualifiers for FunctionNoProtoType.
Sep 9 2022, 10:03 AM · Restricted Project, Restricted Project
rmaz requested review of D133586: [clang] initialize type qualifiers for FunctionNoProtoType.
Sep 9 2022, 10:01 AM · Restricted Project, Restricted Project

Aug 21 2022

rmaz added a comment to D132267: [llvm-objcopy][MachO] Remove more sections with llvm-bitcode-strip.

I see the producers of the sections here:

Aug 21 2022, 11:25 PM · Restricted Project, Restricted Project

Aug 1 2022

rmaz added a comment to D130710: [ASTWriter] Provide capability to output a PCM/PCH file that does not write out information about its output path.

Is the functionality provided by ORIGINAL_PCH_DIR still useful for making it possible to move a PCH and its referenced headers? It's not completely clear to me when this feature is used in practice. It would be nice to remove it or change the default behaviour if possible, rather than require a new option, but I'm open to this approach if we think we can't change the default.

Given that there was a recent change related to ORIGINAL_PCH_DIR, I'm reluctant to change the default at this point, I added a FIXME for following up to see if we can remove it or change the default later on.

Aug 1 2022, 12:19 AM · Restricted Project, Restricted Project

May 12 2022

rmaz committed rGee51e9795a31: [clang] serialize ORIGINAL_PCH_DIR relative to BaseDirectory (authored by rmaz).
[clang] serialize ORIGINAL_PCH_DIR relative to BaseDirectory
May 12 2022, 7:31 AM · Restricted Project, Restricted Project
rmaz closed D124946: [clang] serialize ORIGINAL_PCH_DIR relative to BaseDirectory.
May 12 2022, 7:31 AM · Restricted Project, Restricted Project
rmaz committed rGf11056943e56: [clang] serialize SUBMODULE_TOPHEADER relative to BaseDirectory (authored by rmaz).
[clang] serialize SUBMODULE_TOPHEADER relative to BaseDirectory
May 12 2022, 7:30 AM · Restricted Project, Restricted Project
rmaz closed D124938: [clang] serialize SUBMODULE_TOPHEADER relative to BaseDirectory.
May 12 2022, 7:29 AM · Restricted Project, Restricted Project
rmaz committed rG646e502de0d8: [clang] add -fmodule-file-home-is-cwd (authored by rmaz).
[clang] add -fmodule-file-home-is-cwd
May 12 2022, 7:28 AM · Restricted Project, Restricted Project
rmaz closed D124874: [clang] add -fmodule-file-home-is-cwd.
May 12 2022, 7:28 AM · Restricted Project, Restricted Project

May 11 2022

rmaz added a comment to D124946: [clang] serialize ORIGINAL_PCH_DIR relative to BaseDirectory.

Looks good to me, but perhaps leave it a few days for others to comment (my familiarity with this code is low). I do know people want relocatable outputs though.

May 11 2022, 8:13 AM · Restricted Project, Restricted Project

May 10 2022

rmaz added a reviewer for D125250: [lld/macho] Fixes the -ObjC flag: int3.
May 10 2022, 3:42 PM · Restricted Project, Restricted Project, Restricted Project
rmaz updated the diff for D124874: [clang] add -fmodule-file-home-is-cwd.

Refactor branch into existing case

May 10 2022, 1:27 PM · Restricted Project, Restricted Project

May 9 2022

rmaz added inline comments to D124874: [clang] add -fmodule-file-home-is-cwd.
May 9 2022, 7:19 AM · Restricted Project, Restricted Project

May 6 2022

rmaz added a reviewer for D124946: [clang] serialize ORIGINAL_PCH_DIR relative to BaseDirectory: urnathan.
May 6 2022, 4:37 PM · Restricted Project, Restricted Project
rmaz added a reviewer for D124874: [clang] add -fmodule-file-home-is-cwd: urnathan.
May 6 2022, 4:37 PM · Restricted Project, Restricted Project
rmaz added a reviewer for D124938: [clang] serialize SUBMODULE_TOPHEADER relative to BaseDirectory: urnathan.
May 6 2022, 4:37 PM · Restricted Project, Restricted Project
rmaz updated the diff for D124946: [clang] serialize ORIGINAL_PCH_DIR relative to BaseDirectory.

fix for missing temp dir in test

May 6 2022, 1:48 PM · Restricted Project, Restricted Project

May 4 2022

rmaz updated the diff for D124874: [clang] add -fmodule-file-home-is-cwd.

fix windows paths attempt #2

May 4 2022, 10:31 AM · Restricted Project, Restricted Project
rmaz added reviewers for D124946: [clang] serialize ORIGINAL_PCH_DIR relative to BaseDirectory: manmanren, bruno, aprantl, arphaman, rsmith.
May 4 2022, 10:29 AM · Restricted Project, Restricted Project
rmaz requested review of D124946: [clang] serialize ORIGINAL_PCH_DIR relative to BaseDirectory.
May 4 2022, 10:29 AM · Restricted Project, Restricted Project
rmaz added reviewers for D124938: [clang] serialize SUBMODULE_TOPHEADER relative to BaseDirectory: manmanren, bruno, aprantl, arphaman, rsmith.
May 4 2022, 9:53 AM · Restricted Project, Restricted Project
rmaz requested review of D124938: [clang] serialize SUBMODULE_TOPHEADER relative to BaseDirectory.
May 4 2022, 9:51 AM · Restricted Project, Restricted Project
rmaz updated the diff for D124874: [clang] add -fmodule-file-home-is-cwd.

Use regex for path separators in test

May 4 2022, 9:00 AM · Restricted Project, Restricted Project

May 3 2022

rmaz added reviewers for D124874: [clang] add -fmodule-file-home-is-cwd: aprantl, arphaman, rsmith.
May 3 2022, 1:59 PM · Restricted Project, Restricted Project
rmaz added reviewers for D124874: [clang] add -fmodule-file-home-is-cwd: manmanren, bruno.
May 3 2022, 1:53 PM · Restricted Project, Restricted Project
rmaz requested review of D124874: [clang] add -fmodule-file-home-is-cwd.
May 3 2022, 1:51 PM · Restricted Project, Restricted Project

Mar 7 2022

rmaz committed rG59172194389c: [llvm] remove empty __LLVM segment in llvm-bitcode-strip (authored by rmaz).
[llvm] remove empty __LLVM segment in llvm-bitcode-strip
Mar 7 2022, 8:53 AM · Restricted Project
rmaz closed D120927: [llvm] remove empty __LLVM segment in llvm-bitcode-strip.
Mar 7 2022, 8:52 AM · Restricted Project, Restricted Project
rmaz updated the diff for D120927: [llvm] remove empty __LLVM segment in llvm-bitcode-strip.

With linter

Mar 7 2022, 7:09 AM · Restricted Project, Restricted Project
rmaz updated the diff for D120927: [llvm] remove empty __LLVM segment in llvm-bitcode-strip.

Remove unnecessary CHECK-NOT

Mar 7 2022, 7:08 AM · Restricted Project, Restricted Project

Mar 4 2022

rmaz updated the diff for D120927: [llvm] remove empty __LLVM segment in llvm-bitcode-strip.

Use llvm-readobj --macho-segment

Mar 4 2022, 3:14 PM · Restricted Project, Restricted Project
rmaz updated the diff for D120927: [llvm] remove empty __LLVM segment in llvm-bitcode-strip.

Single pass tests

Mar 4 2022, 3:07 PM · Restricted Project, Restricted Project
rmaz updated the diff for D120669: [llvm] add -r functionality to llvm-bitcode-strip.

update test for windows

Mar 4 2022, 10:42 AM · Restricted Project, Restricted Project
rmaz added a reviewer for D121000: [llvm] fix bitcode-strip.test on windows: drodriguez.
Mar 4 2022, 8:25 AM · Restricted Project, Restricted Project
rmaz requested review of D121000: [llvm] fix bitcode-strip.test on windows.
Mar 4 2022, 8:25 AM · Restricted Project, Restricted Project
rmaz updated the diff for D120669: [llvm] add -r functionality to llvm-bitcode-strip.

with linter

Mar 4 2022, 8:18 AM · Restricted Project, Restricted Project