All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.fastffi.llvm.Argument_cxx_0x6f58ad94 Maven / Gradle / Ivy

The newest version!
package com.alibaba.fastffi.llvm;

import com.alibaba.fastffi.CXXValue;
import com.alibaba.fastffi.FFIForeignType;
import com.alibaba.fastffi.FFINameAlias;
import com.alibaba.fastffi.FFISynthetic;
import com.alibaba.fastffi.FFITypeFactory;
import java.lang.Object;
import java.lang.String;
import java.lang.UnsatisfiedLinkError;

@FFIForeignType("llvm::Argument")
@FFISynthetic("com.alibaba.fastffi.llvm.Argument")
public class Argument_cxx_0x6f58ad94 extends Value_cxx_0xd5ee89fa implements Argument {
  public static final int SIZE;

  public static final int HASH_SHIFT;

  static {
    try {
      System.loadLibrary("llvm4jni");
    } catch (UnsatisfiedLinkError e) {
      System.load(FFITypeFactory.findNativeLibrary(Argument_cxx_0x6f58ad94.class, "llvm4jni"));
    }
  }
  static {
    SIZE = _elementSize$$$();
    assert SIZE > 0;
    HASH_SHIFT = 31 - Integer.numberOfLeadingZeros(1 + SIZE);
    assert HASH_SHIFT > 0;
  }

  public Argument_cxx_0x6f58ad94(final long address) {
    super(address);
  }

  private static final native int _elementSize$$$();

  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    Argument_cxx_0x6f58ad94 that = (Argument_cxx_0x6f58ad94) o;
    return this.address == that.address;
  }

  public int hashCode() {
    return (int) (address >> HASH_SHIFT);
  }

  public String toString() {
    return toJavaString();
  }

  public int getArgNo() {
    return nativeGetArgNo(address);
  }

  public static native int nativeGetArgNo(long ptr);

  @FFINameAlias("getName")
  @CXXValue
  public StringRef getNameOriginal() {
    long ret$ = nativeGetNameOriginal(address, com.alibaba.fastffi.CXXValueScope.allocate(com.alibaba.fastffi.llvm.StringRef_cxx_0xe9c826cb.SIZE)); return (new com.alibaba.fastffi.llvm.StringRef_cxx_0xe9c826cb(ret$));
  }

  @FFINameAlias("getName")
  @CXXValue
  public static native long nativeGetNameOriginal(long ptr, long rv_base);

  @FFINameAlias("getType")
  public Type getTypeOriginal() {
    long ret$ = nativeGetTypeOriginal(address); return com.alibaba.fastffi.llvm.LLVMTypeRefiner.refine(ret$ == 0L ? null : new com.alibaba.fastffi.llvm.Type_cxx_0x69fee191(ret$));
  }

  @FFINameAlias("getType")
  public static native long nativeGetTypeOriginal(long ptr);

  public ValueTy getValueID() {
    return com.alibaba.fastffi.llvm.ValueTy.getValueTy(nativeGetValueID(address));
  }

  public static native int nativeGetValueID(long ptr);

  public boolean hasByValAttr() {
    return nativeHasByValAttr(address);
  }

  public static native boolean nativeHasByValAttr(long ptr);

  @FFINameAlias("use_empty")
  public boolean useEmpty() {
    return nativeUseEmpty(address);
  }

  @FFINameAlias("use_empty")
  public static native boolean nativeUseEmpty(long ptr);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy