[llvm-dev] Instruction arguments

Doerfert, Johannes via llvm-dev llvm-dev at lists.llvm.org
Sun Jan 19 18:02:28 PST 2020


On 01/19, Abid Malik via llvm-dev wrote:
> How can I convert the arg for binary comparison(== etc.)? If I am correct,
> it is not a string. If the argument is "i32 1", Is there a way to access
> the content value "1" directly?

You don't want to access "1" directly if you want to compare it to
something other than a native C++ integer type such as
`int/unsigned/long/...`. These are SSA values on which pointer equality
works, especially since constants, e.g., i32 1, are unique.

Cheers,
  Johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200120/c12c711d/attachment.sig>


More information about the llvm-dev mailing list