public final class CStringNode extends FloatingNode implements LIRLowerable
Node.ConstantNodeParameter, Node.InjectedNodeParameter, Node.Input, Node.NodeIntrinsic, Node.OptionalInput, Node.Successor, Node.ValueNumberable
Modifier and Type | Field and Description |
---|---|
protected String |
string |
static NodeClass<CStringNode> |
TYPE |
NODE_LIST, NOT_ITERABLE, USE_UNSAFE_TO_CLONE, WithAllEdges, WithNoEdges, WithOnlyInputEdges, WithOnlySucessorEdges
Constructor and Description |
---|
CStringNode(WordTypes wordTypes,
String string) |
Modifier and Type | Method and Description |
---|---|
static Word |
cstring(String string) |
static AllocatableValue |
emitCString(NodeLIRBuilderTool gen,
String value) |
void |
generate(NodeLIRBuilderTool gen) |
static byte[] |
toCString(String s)
Converts a string to a null terminated byte array of ASCII characters.
|
asNode
asConstant, asJavaConstant, getKind, graph, inferStamp, isAllowedUsageType, isConstant, isConstantPredicate, isNullConstant, setStamp, stamp, updateStamp
acceptInputs, acceptSuccessors, afterClone, assertFalse, assertTrue, cfgPredecessors, cfgSuccessors, clearInputs, clearSuccessors, copyWithInputs, copyWithInputs, equals, fail, formatTo, getDebugProperties, getDebugProperties, getId, getNodeClass, getUsageAt, getUsageCount, hashCode, hasNoUsages, hasUsages, inputs, isAlive, isDeleted, markDeleted, modCount, newIdentityMap, newIdentityMap, newIdentityMap, newMap, newMap, newMap, newSet, newSet, predecessor, pushInputs, removeUsage, replaceAndDelete, replaceAtMatchingUsages, replaceAtPredecessor, replaceAtUsages, replaceAtUsages, replaceAtUsages, replaceFirstInput, replaceFirstSuccessor, safeDelete, simplify, successors, toString, toString, updatePredecessor, updateUsages, updateUsagesInterface, usages, valueEquals, verify, verifyEdges, verifyInputs
public static final NodeClass<CStringNode> TYPE
public CStringNode(WordTypes wordTypes, String string)
public void generate(NodeLIRBuilderTool gen)
generate
in interface LIRLowerable
public static AllocatableValue emitCString(NodeLIRBuilderTool gen, String value)
public static byte[] toCString(String s)
s
- a String that must only contain ASCII characters