public CGlobalDataInfo addOrLookupMethod(ResolvedJavaMethod method) { if (method.getAnnotation(NodeIntrinsic.class) != null || method.getAnnotation(Word.Operation.class) != null) { return null; } return nameToFunction.computeIfAbsent(linkageName(method), symbolName -> { CGlobalData<CFunctionPointer> linkage = CGlobalDataFactory.forSymbol(symbolName); return CGlobalDataFeature.singleton().registerAsAccessed(linkage); }); }
public CGlobalDataInfo getBuiltInAddress() { assert this.isBuiltInFunction(); if (builtInAddress == null) { CGlobalData<CFunctionPointer> linkage = CGlobalDataFactory.forSymbol(this.getShortName()); builtInAddress = CGlobalDataFeature.singleton().registerAsAccessed(linkage); } return builtInAddress; }