public override LLVMRegister VisitBooleanAssignments([NotNull] ClepsParser.BooleanAssignmentsContext context) { bool boolValue = context.TRUE() != null; ulong value = boolValue ? 1u : 0u; LLVMTypeRef llvmType = LLVM.Int1TypeInContext(Context); LLVMRegister ret = GetConstantIntRegisterOfClepsType(context, llvmType, value, "bool" /* friendly type name */); return(ret); }
public override object VisitBooleanAssignments([NotNull] ClepsParser.BooleanAssignmentsContext context) { return(CodeGenerator.CreateBoolean(context.TRUE() != null)); }