Lines Matching defs:Result
30 std::string Result;
31 raw_string_ostream Tmp(Result);
306 Type *Result = 0;
308 NumberedTypes[TypeID], Result)) return true;
310 if (!isa<StructType>(Result)) {
314 Entry.first = Result;
333 Type *Result = 0;
335 NamedTypes[Name], Result)) return true;
337 if (!isa<StructType>(Result)) {
341 Entry.first = Result;
441 bool LLParser::ParseMDString(MDString *&Result) {
444 Result = MDString::get(Context, Str);
453 bool LLParser::ParseMDNodeID(MDNode *&Result, unsigned &SlotNo) {
459 Result = NumberedMetadata[SlotNo];
461 Result = 0;
465 bool LLParser::ParseMDNodeID(MDNode *&Result) {
468 if (ParseMDNodeID(Result, MID)) return true;
471 if (Result) return false;
480 Result = FwdNode;
842 bool LLParser::ParseStringConstant(std::string &Result) {
845 Result = Lex.getStrVal();
917 /// indicates what kind of attribute list this is: 0: function arg, 1: result,
1268 bool LLParser::ParseType(Type *&Result, bool AllowVoid) {
1275 Result = Lex.getTyVal();
1280 if (ParseAnonStructType(Result, false))
1286 if (ParseArrayVectorType(Result, false))
1293 if (ParseAnonStructType(Result, true) ||
1296 } else if (ParseArrayVectorType(Result, true))
1309 Result = Entry.first;
1326 Result = Entry.first;
1337 if (!AllowVoid && Result->isVoidTy())
1343 if (Result->isLabelTy())
1345 if (Result->isVoidTy())
1347 if (!PointerType::isValidElementType(Result))
1349 Result = PointerType::getUnqual(Result);
1355 if (Result->isLabelTy())
1357 if (Result->isVoidTy())
1359 if (!PointerType::isValidElementType(Result))
1366 Result = PointerType::get(Result, AddrSpace);
1372 if (ParseFunctionType(Result))
1491 bool LLParser::ParseFunctionType(Type *&Result) {
1494 if (!FunctionType::isValidReturnType(Result))
1515 Result = FunctionType::get(Result, ArgListTy, isVarArg);
1521 bool LLParser::ParseAnonStructType(Type *&Result, bool Packed) {
1525 Result = StructType::get(Context, Elts, Packed);
1626 bool LLParser::ParseArrayVectorType(Type *&Result, bool isVector) {
1654 Result = VectorType::get(EltTy, unsigned(Size));
1658 Result = ArrayType::get(EltTy, Size);
2886 default: llvm_unreachable("Unknown ParseInstruction result!");
2891 // With a normal result, we check to see if the instruction is followed by
3072 return Error(TypeLoc, "value doesn't match function result type '" +
3083 return Error(TypeLoc, "value doesn't match function result type '" +
3244 return Error(RetTypeLoc, "Invalid result type for LLVM function");
3640 return Error(RetTypeLoc, "Invalid result type for LLVM function");