[llvm-dev] How to create a proper MachineMemOperand?

陳韋任 via llvm-dev llvm-dev at lists.llvm.org
Mon Apr 16 06:19:46 PDT 2018


Usually I will search the target directory, X86 in your case, to see
how MOV64mr is used with BuildMI to generate the instruction I want.

2018-04-16 16:25 GMT+08:00 Will Lester via llvm-dev <llvm-dev at lists.llvm.org>:
> Hi all,
> I met a new problem in the process of my project.
> I have got an address by mmap. And I want to build a MachineInstr of MOV64mr
> to move a value to the address. But it seems that the MachinePointerInfo
> needs a pointer to a Value.
> So can I create a MachineMemOperand directly with the address (is a long*) ?
> Or I need to try some other methods?
> Thanks a lot,
> Will
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>



-- 
Wei-Ren Chen (陳韋任)
Homepage: https://people.cs.nctu.edu.tw/~chenwj


More information about the llvm-dev mailing list