Page MenuHomePhabricator

jsjodin (Jan Sjödin)
User

Projects

User does not belong to any projects.

User Details

User Since
Nov 14 2012, 10:49 AM (540 w, 4 d)

Recent Activity

Thu, Mar 23

jsjodin committed rG85faee69928b: [OpenMP][OMPIRBuilder] Make OffloadEntriesInfoManager a member of… (authored by jsjodin).
[OpenMP][OMPIRBuilder] Make OffloadEntriesInfoManager a member of…
Thu, Mar 23, 8:52 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin closed D146549: [OpenMP][OMPIRBuilder] Make OffloadEntriesInfoManager a member of OpenMPIRBuilder.
Thu, Mar 23, 8:51 AM · Restricted Project, Restricted Project, Restricted Project

Tue, Mar 21

jsjodin requested review of D146549: [OpenMP][OMPIRBuilder] Make OffloadEntriesInfoManager a member of OpenMPIRBuilder.
Tue, Mar 21, 10:53 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin committed rG382eb7c2c716: [mlir] Add alloca address space handling to the data layout subsystem (authored by jsjodin).
[mlir] Add alloca address space handling to the data layout subsystem
Tue, Mar 21, 6:51 AM · Restricted Project, Restricted Project
jsjodin closed D144657: [mlir] Add alloca address space handling to the data layout subsystem.
Tue, Mar 21, 6:50 AM · Restricted Project, Restricted Project

Mon, Mar 20

jsjodin updated the diff for D144657: [mlir] Add alloca address space handling to the data layout subsystem.

Added unittest with non-null memory space. Fixed comments to end with '.'.

Mon, Mar 20, 2:14 PM · Restricted Project, Restricted Project
jsjodin added a comment to D144657: [mlir] Add alloca address space handling to the data layout subsystem.

Sorry for delay, already-approved patches don't show up in the review stream :(

Mon, Mar 20, 12:10 PM · Restricted Project, Restricted Project

Tue, Mar 14

jsjodin added a comment to D143572: [RFC][Flang][driver] Try to support `flang -cc1as`.

@sunshaoce, @awarzynski are there remaining issues with this patch? We currently needs this for our testing.

Tue, Mar 14, 5:41 AM · Restricted Project, Restricted Project

Mon, Mar 13

jsjodin updated the summary of D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen.
Mon, Mar 13, 7:29 AM · Restricted Project
jsjodin added a reviewer for D145932: [mlir] Support lowering of dialect attributes attached to top-level modules: krzysz00.
Mon, Mar 13, 6:36 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin added inline comments to D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen.
Mon, Mar 13, 5:58 AM · Restricted Project

Thu, Mar 9

jsjodin added a comment to D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen.

Sorry, I haven't had a chance to look at this in detail. I would need to get up to speed with addrspace in LLVM before proceeding with this. I would recommend someone from your organization review this patch and then @jeanPerier sign this off, if it is OK.

Thu, Mar 9, 10:50 AM · Restricted Project
jsjodin added a reviewer for D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen: jhuber6.
Thu, Mar 9, 8:31 AM · Restricted Project

Mon, Mar 6

jsjodin added a comment to D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen.

@kiranchandramohan did you have any other feedback on this patch?

Mon, Mar 6, 2:04 PM · Restricted Project

Wed, Mar 1

jsjodin updated the diff for D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen.

Fix comment

Wed, Mar 1, 7:55 AM · Restricted Project
jsjodin added a comment to D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen.

Thanks for the changes and the replies.

Could you also comment on why the address-space cast need not be modelled in FIR?

Wed, Mar 1, 7:49 AM · Restricted Project

Tue, Feb 28

jsjodin added a comment to D144657: [mlir] Add alloca address space handling to the data layout subsystem.

Looks good to me - though I'm not sure if we want @ftynse or someone else more familiar with DTLI to take a look before landing.

Tue, Feb 28, 3:54 PM · Restricted Project, Restricted Project
jsjodin updated the diff for D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen.

Make types explicit.

Tue, Feb 28, 3:32 PM · Restricted Project
jsjodin updated the diff for D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen.

Make sure all tests check alloca return type. Use constant value for alloca address space from the ROCDL dialect.

Tue, Feb 28, 1:54 PM · Restricted Project

Mon, Feb 27

jsjodin updated the diff for D144657: [mlir] Add alloca address space handling to the data layout subsystem.

Use Attribute instead of integers to encode memory spaces. Change address space -> memory space.

Mon, Feb 27, 11:37 AM · Restricted Project, Restricted Project

Feb 24 2023

jsjodin added a comment to D144657: [mlir] Add alloca address space handling to the data layout subsystem.

Also, how would the default case be handled (currently returns 0)?

Feb 24 2023, 7:26 AM · Restricted Project, Restricted Project
jsjodin added a comment to D144657: [mlir] Add alloca address space handling to the data layout subsystem.

... in further comments, if we want to go with the address space and memory space as distinct data layout entries system, I'd be willing to review this patch on its own and leave the memory space part to another patch.

Feb 24 2023, 7:24 AM · Restricted Project, Restricted Project

Feb 23 2023

jsjodin requested review of D144657: [mlir] Add alloca address space handling to the data layout subsystem.
Feb 23 2023, 10:01 AM · Restricted Project, Restricted Project

Feb 21 2023

jsjodin added inline comments to D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen.
Feb 21 2023, 7:56 AM · Restricted Project
jsjodin added a comment to D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen.

I am not familiar with address spaces in LLVM. Could you give a pointer to how llvm handles address spaces? Also what is the role of datalayout in address space handling? Currently, it seems that the handling is fully based on the target.

Feb 21 2023, 7:33 AM · Restricted Project

Feb 17 2023

jsjodin updated the diff for D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen.

Fixed typo

Feb 17 2023, 12:06 PM · Restricted Project
jsjodin updated the diff for D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen.
Feb 17 2023, 7:42 AM · Restricted Project

Feb 16 2023

jsjodin added a reviewer for D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen: yaxunl.
Feb 16 2023, 10:23 AM · Restricted Project
jsjodin requested review of D144203: [flang] Add basic support for alloca address space handling in FIR->LLVMIR codegen.
Feb 16 2023, 10:14 AM · Restricted Project

Feb 7 2023

jsjodin committed rG08749a9137a5: [flang] Add AMDGPU target in flang (authored by jsjodin).
[flang] Add AMDGPU target in flang
Feb 7 2023, 11:59 AM · Restricted Project, Restricted Project
jsjodin closed D143102: [flang] Add AMDGPU target in flang.
Feb 7 2023, 11:59 AM · Restricted Project, Restricted Project
jsjodin added inline comments to D143102: [flang] Add AMDGPU target in flang.
Feb 7 2023, 8:27 AM · Restricted Project, Restricted Project
jsjodin updated the diff for D143102: [flang] Add AMDGPU target in flang.

Add index width test.

Feb 7 2023, 7:27 AM · Restricted Project, Restricted Project
jsjodin added inline comments to D143102: [flang] Add AMDGPU target in flang.
Feb 7 2023, 7:27 AM · Restricted Project, Restricted Project
jsjodin added a comment to D143102: [flang] Add AMDGPU target in flang.

Would it be possible to add a test for the defaultWidth? Like in flang/test/Fir/target-rewrite-boxchar.fir?

Feb 7 2023, 7:25 AM · Restricted Project, Restricted Project

Feb 2 2023

jsjodin updated the diff for D143102: [flang] Add AMDGPU target in flang.

Remove complex arg/return type code.

Feb 2 2023, 5:52 AM · Restricted Project, Restricted Project
jsjodin added a comment to D142910: [MLIR][OpenMP][FLANG] Adding MLIR OpenMP dialect Operation for OpenMP's Declare Target.

From my current work on Declare Target I don't think you necessarily need an omp.function at least so far, you can distinguish what is a device function via other OpenMP operations that are device outlining directives in OpenMP like Declare Target, but the work on Declare Target is very much in the early stages (https://github.com/ROCm-Developer-Tools/llvm-project/pull/185), so we may find some problems along the way. I think the benefits I see of omp.function is perhaps that it may make the code generation process easier, as you can perhaps just directly generate an omp.function from Declare Target clause members that are functions, the global data could be packaged in the declare.target operation, so we effectively skip the middle man. It also makes sure that the device/target lowering that may be necessary is easily separable from the regular FuncOp lowering.

If we require omp.function (may be we should call it omp.target_function) then we would require something like an omp.target_variable as well isn't it?

That is likely true, and maybe a more general approach than having omp.target_declare if there are other ways to create outlineable global variables (which I imagine there is) and just generally a little more flexible for outlined variables. For now I am waiting to see the results of the poll / discussion to see which way everyone leans on this topic!

Feb 2 2023, 5:20 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
jsjodin added a comment to D143102: [flang] Add AMDGPU target in flang.

I would have expected something ala:

flang -fopenmp -fopenmp-targets=nvptx64-nvidia-cuda example.f90

https://openmp.org/wp-content/uploads/SC18-BoothTalks-Ozen.pdf

gfx902 is not a cpu.

Feb 2 2023, 5:09 AM · Restricted Project, Restricted Project
jsjodin added a comment to D143102: [flang] Add AMDGPU target in flang.

It will be helpful if you can share a godbolt link with the types that you see for complex argument and return type like in https://godbolt.org/z/x73xT3r83. I see some difference from what you have given here. Not sure whether it is because of an incorrect invocation.

Please add tests as well (refer to previous commits https://reviews.llvm.org/D136547).

Feb 2 2023, 5:04 AM · Restricted Project, Restricted Project

Feb 1 2023

jsjodin requested review of D143102: [flang] Add AMDGPU target in flang.
Feb 1 2023, 12:40 PM · Restricted Project, Restricted Project
jsjodin added a comment to D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.

No, it should work for any configuration as far as I know. How are you running the test?

Just with check-flang

How does it fail? Can you show the output? Also what CPU are you running on?

I run on `x86_64`

How did you configure your build? I'd like to reproduce your build and see if I can make it fail on my machine. Right now the test passes.

My bad .. my CompilerInvocation.cpp was overwritten and missed part of this patch. It works fine. Sorry to have bothered you with that.

Feb 1 2023, 8:54 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin added a comment to D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.

No, it should work for any configuration as far as I know. How are you running the test?

Just with check-flang

How does it fail? Can you show the output? Also what CPU are you running on?

I run on `x86_64`
Feb 1 2023, 7:29 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin added a comment to D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.

No, it should work for any configuration as far as I know. How are you running the test?

Just with check-flang

Feb 1 2023, 6:59 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin added a comment to D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.

The new test embed.f90 and embed-error.f90 are failing on my side. Do they assume a specific configuration?

Feb 1 2023, 6:34 AM · Restricted Project, Restricted Project, Restricted Project

Jan 31 2023

jsjodin committed rG40d8c0666f19: [flang][driver] Add support for -embed-offload-object flag in flang (authored by jsjodin).
[flang][driver] Add support for -embed-offload-object flag in flang
Jan 31 2023, 8:03 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin closed D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.
Jan 31 2023, 8:03 AM · Restricted Project, Restricted Project, Restricted Project

Jan 30 2023

jsjodin abandoned D80816: [OpenMP] Add unbundling of archives containing bundled object files into device specific archives..

This is no longer needed.

Jan 30 2023, 11:14 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin updated the diff for D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.

Merge with trunk so patch applies.

Jan 30 2023, 6:34 AM · Restricted Project, Restricted Project, Restricted Project

Jan 26 2023

jsjodin added a comment to D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.

Do you know what's left on the Flang driver side to enable offloading?

Jan 26 2023, 10:28 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin added a comment to D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.

@awarzynski do you have any other concerns about the patch?

Jan 26 2023, 7:55 AM · Restricted Project, Restricted Project, Restricted Project

Jan 25 2023

jsjodin updated the diff for D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.

Update variable names to camel case.

Jan 25 2023, 1:56 PM · Restricted Project, Restricted Project, Restricted Project
jsjodin added inline comments to D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.
Jan 25 2023, 1:46 PM · Restricted Project, Restricted Project, Restricted Project
jsjodin added inline comments to D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.
Jan 25 2023, 12:06 PM · Restricted Project, Restricted Project, Restricted Project
jsjodin updated the diff for D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.

Update test to check metadata.

Jan 25 2023, 11:50 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin updated the diff for D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.

Added test to embed with .bc file as input instead of source file. Fixed comment in negative test.

Jan 25 2023, 11:11 AM · Restricted Project, Restricted Project, Restricted Project

Jan 23 2023

jsjodin updated the summary of D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.
Jan 23 2023, 1:55 PM · Restricted Project, Restricted Project, Restricted Project
jsjodin added a comment to D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.

Thanks for sending this, @jsjodin ! Overall, this makes sense. But I have no experience with offloading and I would appreciate some RFC that would explain what the overall direction. What are the next steps? And what's the overall goal?

Jan 23 2023, 1:54 PM · Restricted Project, Restricted Project, Restricted Project
jsjodin updated the diff for D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.

Added negative test and early return when error occurrs.

Jan 23 2023, 1:27 PM · Restricted Project, Restricted Project, Restricted Project
jsjodin accepted D141910: [OpenMP][OMPIRBuilder]Move SIMD alignment calculation to LLVM Frontend.

This looks good to me. Have @jdoerfert approve as well.

Jan 23 2023, 9:58 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Jan 20 2023

jsjodin requested review of D142244: [flang][driver] Add support for -embed-offload-object flag in flang -fc1.
Jan 20 2023, 11:56 AM · Restricted Project, Restricted Project, Restricted Project

Jan 13 2023

jsjodin accepted D138496: [OpenMP][OMPContext] Move SIMD alignment calculation to LLVM Frontend.

LG

Jan 13 2023, 6:29 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Dec 23 2022

jsjodin added inline comments to D138496: [OpenMP][OMPContext] Move SIMD alignment calculation to LLVM Frontend.
Dec 23 2022, 7:17 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
jsjodin added inline comments to D138496: [OpenMP][OMPContext] Move SIMD alignment calculation to LLVM Frontend.
Dec 23 2022, 7:13 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Dec 12 2022

jsjodin committed rG1f8fecf26b35: [OpenMP][OMPIRBuilder] Migrate code to emit target region functions from clang… (authored by jsjodin).
[OpenMP][OMPIRBuilder] Migrate code to emit target region functions from clang…
Dec 12 2022, 7:31 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin closed D139634: [OpenMP][OMPIRBuilder] Migrate code to emit target region functions from clang to OMPIRBuilder.
Dec 12 2022, 7:31 AM · Restricted Project, Restricted Project, Restricted Project

Dec 9 2022

jsjodin updated the diff for D139634: [OpenMP][OMPIRBuilder] Migrate code to emit target region functions from clang to OMPIRBuilder.

Fix comment and test.

Dec 9 2022, 8:19 AM · Restricted Project, Restricted Project, Restricted Project

Dec 8 2022

jsjodin added a reviewer for D138220: [OpenMP][OMPIRBuilder] Add a configuration class to captures flags/attributes that affect codegen: jhuber6.
Dec 8 2022, 8:12 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin requested review of D139634: [OpenMP][OMPIRBuilder] Migrate code to emit target region functions from clang to OMPIRBuilder.
Dec 8 2022, 8:10 AM · Restricted Project, Restricted Project, Restricted Project

Dec 6 2022

jsjodin added a comment to D138496: [OpenMP][OMPContext] Move SIMD alignment calculation to LLVM Frontend.

@jsjodin thanks for your remark. Let me add some more information to this patch.

Currently clang emits information about preferred simd alignment only for X86, WebAssembly and PPC targets.

[snip]

Your code looks elegant but in my opinion it will generate different code for ARM architecture where the vector alignment is set to 64 ( https://github.com/llvm-mirror/clang/blob/master/lib/Basic/Targets/ARM.cpp#L311 ), but simd default alignment is set to 0.

Dec 6 2022, 10:25 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Dec 1 2022

jsjodin added a comment to D138496: [OpenMP][OMPContext] Move SIMD alignment calculation to LLVM Frontend.

If we implemented DataLayout::getMaxPreferredVectorTypeAlign something like this:

Dec 1 2022, 10:35 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Nov 29 2022

jsjodin committed rG2166d9529a60: [OpenMP][OMPIRBuilder] Migrate target outlined function registration to… (authored by jsjodin).
[OpenMP][OMPIRBuilder] Migrate target outlined function registration to…
Nov 29 2022, 11:24 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin closed D137587: [OpenMP][OMPIRBuilder] Migrate target outlined function registration to OMPIRBuilder from clang.
Nov 29 2022, 11:24 AM · Restricted Project, Restricted Project, Restricted Project

Nov 25 2022

jsjodin updated the diff for D137587: [OpenMP][OMPIRBuilder] Migrate target outlined function registration to OMPIRBuilder from clang.

No need to pass in IsEmbedded, it is in the config now. Perhaps the manager should also have the config available.

Nov 25 2022, 10:28 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin updated the diff for D137587: [OpenMP][OMPIRBuilder] Migrate target outlined function registration to OMPIRBuilder from clang.

Update against trunk.

Nov 25 2022, 9:33 AM · Restricted Project, Restricted Project, Restricted Project

Nov 24 2022

jsjodin committed rG2aa338f68e1e: [OpenMP][OMPIRBuilder] Mirgrate getName from clang to OMPIRBuilder (authored by jsjodin).
[OpenMP][OMPIRBuilder] Mirgrate getName from clang to OMPIRBuilder
Nov 24 2022, 7:16 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin closed D137725: [OpenMP][OMPIRBuilder] Mirgrate getName from clang to OMPIRBuilder.
Nov 24 2022, 7:16 AM · Restricted Project, Restricted Project, Restricted Project

Nov 23 2022

jsjodin updated the diff for D137725: [OpenMP][OMPIRBuilder] Mirgrate getName from clang to OMPIRBuilder.

Make firstSeparator() and separator() return the correct default values when the optional values are not set. This will allow overriding the default, and will avoid inconsistencies in the case IsTargetCodegen is modified in the config. Change name of getName to something more descriptive. Maybe getPlatformSpecificName is better than createPlatformSpecificName, feedback is welcome.

Nov 23 2022, 9:26 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin added a comment to D138496: [OpenMP][OMPContext] Move SIMD alignment calculation to LLVM Frontend.

Yes, we can extend calculations of the default alignment. My primary goal was to move code from clang into llvm without modification of the code logic.

AFAIK the default simd alignment corresponds to the maximal width of the simd instruction for given target.

Nov 23 2022, 7:22 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Nov 22 2022

jsjodin added inline comments to D137725: [OpenMP][OMPIRBuilder] Mirgrate getName from clang to OMPIRBuilder.
Nov 22 2022, 11:06 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin updated the diff for D137725: [OpenMP][OMPIRBuilder] Mirgrate getName from clang to OMPIRBuilder.

Use the new config class. Perhaps the separators could be inferred from isTargetCodgen, but keeping them explicit for now.

Nov 22 2022, 11:02 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin added a comment to D138496: [OpenMP][OMPContext] Move SIMD alignment calculation to LLVM Frontend.

Looking at the existing code before the patch:
  / Return default simd alignment for the given target. Generally, this
  
/ value is type-specific, but this alignment can be used for most of the
  /// types for the given target.
  unsigned getSimdDefaultAlign() const { return SimdDefaultAlign; }
It is very imprecise. Which types? The smallest alignment for all vector and element types?.

Nov 22 2022, 7:45 AM · Restricted Project, Restricted Project, Restricted Project, Restricted Project
jsjodin committed rG969d787a470a: [OpenMP][OMPIRBuilder] Add a configuration class that captures flags that… (authored by jsjodin).
[OpenMP][OMPIRBuilder] Add a configuration class that captures flags that…
Nov 22 2022, 6:28 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin closed D138220: [OpenMP][OMPIRBuilder] Add a configuration class to captures flags/attributes that affect codegen.
Nov 22 2022, 6:28 AM · Restricted Project, Restricted Project, Restricted Project

Nov 21 2022

jsjodin updated the diff for D138220: [OpenMP][OMPIRBuilder] Add a configuration class to captures flags/attributes that affect codegen.

Fix typo in comment.

Nov 21 2022, 7:00 AM · Restricted Project, Restricted Project, Restricted Project

Nov 17 2022

jsjodin added inline comments to D138220: [OpenMP][OMPIRBuilder] Add a configuration class to captures flags/attributes that affect codegen.
Nov 17 2022, 11:19 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin added a comment to D138220: [OpenMP][OMPIRBuilder] Add a configuration class to captures flags/attributes that affect codegen.

Optional<bool> is an odd data structure. I would use enums instead to describe the different states.

Nov 17 2022, 11:09 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin updated subscribers of D138220: [OpenMP][OMPIRBuilder] Add a configuration class to captures flags/attributes that affect codegen.
Nov 17 2022, 9:23 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin added a comment to D137725: [OpenMP][OMPIRBuilder] Mirgrate getName from clang to OMPIRBuilder.

I'm currently working on using llvm::Optional for the various attiibutes, since that is more flexible. Let me know if you have any other ideas how to handle this.

Optional is good, for the fields or the config object. Alternatively defaults as we can derive them would be OK too. A mix might be good, if we can derive a sensible default, we use it, if not, it's Optional and None.

Nov 17 2022, 9:13 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin requested review of D138220: [OpenMP][OMPIRBuilder] Add a configuration class to captures flags/attributes that affect codegen.
Nov 17 2022, 9:12 AM · Restricted Project, Restricted Project, Restricted Project

Nov 16 2022

jsjodin added a comment to D137725: [OpenMP][OMPIRBuilder] Mirgrate getName from clang to OMPIRBuilder.

Maybe we want a configuration object that is populated once by the user and passed to the OMPIRBuilder to cluster all such configurations, e.g., device, embedded, etc. We can also choose separators based on that internally.

Yes, I think that sounds good. Formalizing the attributes that affect codgen (in a configuration object) should make the code easier to understand/maintain. I can start working on a patch to add the configuration object.

Nov 16 2022, 8:07 AM · Restricted Project, Restricted Project, Restricted Project

Nov 11 2022

jsjodin added a comment to D137725: [OpenMP][OMPIRBuilder] Mirgrate getName from clang to OMPIRBuilder.

Maybe we want a configuration object that is populated once by the user and passed to the OMPIRBuilder to cluster all such configurations, e.g., device, embedded, etc. We can also choose separators based on that internally.

Nov 11 2022, 7:16 AM · Restricted Project, Restricted Project, Restricted Project

Nov 9 2022

jsjodin requested review of D137725: [OpenMP][OMPIRBuilder] Mirgrate getName from clang to OMPIRBuilder.
Nov 9 2022, 9:16 AM · Restricted Project, Restricted Project, Restricted Project

Nov 8 2022

jsjodin closed D136853: [OpenMP][OMPIRBuilder] Migrate createOffloadEntriesAndInfoMetadata from clang to OpenMPIRBuilder.
Nov 8 2022, 11:05 AM · Restricted Project, Restricted Project
jsjodin added inline comments to D137587: [OpenMP][OMPIRBuilder] Migrate target outlined function registration to OMPIRBuilder from clang.
Nov 8 2022, 7:13 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin updated the diff for D137587: [OpenMP][OMPIRBuilder] Migrate target outlined function registration to OMPIRBuilder from clang.

Changed setOutlinedFunctionAttributes to setOutlinedTargetRegionFunctionAttributes. Fixed else after return. Added TODO. Removed comment.

Nov 8 2022, 7:12 AM · Restricted Project, Restricted Project, Restricted Project

Nov 7 2022

jsjodin requested review of D137587: [OpenMP][OMPIRBuilder] Migrate target outlined function registration to OMPIRBuilder from clang.
Nov 7 2022, 2:12 PM · Restricted Project, Restricted Project, Restricted Project

Nov 3 2022

jsjodin committed rGd7f0f4a0a23e: [OpenMP][OMPIRBuilder] Migrate createOffloadEntriesAndInfoMetadata from clang… (authored by jsjodin).
[OpenMP][OMPIRBuilder] Migrate createOffloadEntriesAndInfoMetadata from clang…
Nov 3 2022, 8:44 AM · Restricted Project, Restricted Project
jsjodin added a comment to D134816: [OpenMP] Account for the possibility of multiple target regions per line.

> I think it makes sense to do your cleanup first, then migrate to OMPIRbuilder, and do this feature improvement last. That way we have parity first then extend the functionality.

Makes sense to me too. @jsjodin are you going to add the cleanup or should I do it? After that I can fix this patch up.

I am working on the cleanup. Doing some debugging, but the code is mostly there.

I was being a bit too ambitious trying to combine the cleanup and the migration. I will split things up to simplify the changes.

Here is the cleanup patch: https://reviews.llvm.org/D136601
Note that it changes the naming for variable because it was inconsistent with target regions "omp_offloading__..." vs "omp_offloading_..." so 1 underscore instead of 2 at the end of the prefix.

Nov 3 2022, 7:47 AM · Restricted Project, Restricted Project, Restricted Project
jsjodin committed rG9ea2b150b545: [OpenMP][OMPIRBuilder] Migrate createOffloadEntriesAndInfoMetadata from clang… (authored by jsjodin).
[OpenMP][OMPIRBuilder] Migrate createOffloadEntriesAndInfoMetadata from clang…
Nov 3 2022, 7:31 AM · Restricted Project, Restricted Project, Restricted Project

Nov 2 2022

jsjodin updated the diff for D136853: [OpenMP][OMPIRBuilder] Migrate createOffloadEntriesAndInfoMetadata from clang to OpenMPIRBuilder.

Use std::function instead of function_ref.

Nov 2 2022, 2:01 PM · Restricted Project, Restricted Project