Displaying 2 results from an estimated 2 matches for "md_invariant_load".
2019 May 01
2
Assigning custom information to IR instruction and passing it to its correspondent in Selection DAG
...use an intrinsic to mark
the pointer itself instead of the instructions manipulating it, again it
depends on what you are modelling.
I've found that in the DAGBuilder metadata information connected with
> LoadInst instruction is utilized:
> bool isInvariant = I.getMetadata(LLVMContext::MD_invariant_load) !=
> nullptr;
>
> Is this metadata somehow protected against dropping - as you mentioned?
>
Nothing is protected as far as I know, the design is that it should always
be legal to drop a metadata.
I don’t know what the invariant_load information is used for at the place
you looked at,...
2019 May 01
2
Assigning custom information to IR instruction and passing it to its correspondent in Selection DAG
On Tue, Apr 30, 2019 at 3:51 PM Przemyslaw Ossowski via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> Hi,
> as I wrote in mu previous post I wanted to somehow mark one IR instruction
> (in this particular case it would be 'load') during dedicated pass, which
> will set the marking based on neighboring instructions. Next I wanted to
> somehow to convey this marking