Displaying 2 results from an estimated 2 matches for "llvm_default_as_param".
2020 Jul 24
3
[RFC] Requiring explicit address space arguments for PointerType
I agree, improving this makes sense.
Alexander, I don’t think that “LLVM_DEFAULT_AS_PARAM” is the right way to go, I would just remove the “ = 0” default parameter entirely.
-Chris
> On Jul 23, 2020, at 11:02 AM, Nicolai Hähnle via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hi Alex,
>
> I'd be very much in favor of this, thanks for pushing ;)
>
>...
2020 Jul 22
2
[RFC] Requiring explicit address space arguments for PointerType
...fdef
So far I've changed all default-zero calls for clang and some parts of
LLVM, but we haven't touched passes/targets that we don't add CHERI
support for [1].
I have uploaded these changes as https://reviews.llvm.org/D78491 which
effectively replaces
`unsigned AddressSpace = 0` with LLVM_DEFAULT_AS_PARAM(AddressSpace).
This macro expands to an argument with a default of zero unless
LLVM_NO_IMPLICIT_ADDRESS_SPACE is defined, in which case the argument
is required.
This allows incrementally removing the default zero from individual
files/directories by adding
add_definitions(-DLLVM_NO_IMPLICIT_ADDRES...