/external/llvm/unittests/Transforms/Utils/ |
D | MemorySSA.cpp | 227 Value *Alloca = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "A"); in TEST_F() local 228 StoreInst *S1 = B.CreateStore(ConstantInt::get(Int8, 0), Alloca); in TEST_F() 229 StoreInst *S2 = B.CreateStore(ConstantInt::get(Int8, 1), Alloca); in TEST_F() 230 StoreInst *S3 = B.CreateStore(ConstantInt::get(Int8, 2), Alloca); in TEST_F() 259 Value *Alloca = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "A"); in TEST_F() local 260 Instruction *SI = B.CreateStore(ConstantInt::get(Int8, 0), Alloca); in TEST_F() 261 Instruction *LI = B.CreateLoad(Alloca); in TEST_F() 289 Value *Alloca = B.CreateAlloca(Int8, ConstantInt::get(Int8, 1), "A"); in TEST_F() local 290 StoreInst *SI = B.CreateStore(ConstantInt::get(Int8, 0), Alloca); in TEST_F()
|
/external/clang/lib/CodeGen/ |
D | CGCUDABuiltin.cpp | 103 llvm::Value *Alloca = CreateTempAlloca(AllocaTy); in EmitCUDADevicePrintfCallExpr() local 106 llvm::Value *P = Builder.CreateStructGEP(AllocaTy, Alloca, I - 1); in EmitCUDADevicePrintfCallExpr() 110 BufferPtr = Builder.CreatePointerCast(Alloca, llvm::Type::getInt8PtrTy(Ctx)); in EmitCUDADevicePrintfCallExpr()
|
/external/llvm/examples/Kaleidoscope/MCJIT/lazy/ |
D | toy-jit.cpp | 792 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local 799 Builder.CreateStore(StartVal, Alloca); in Codegen() 814 NamedValues[VarName] = Alloca; in Codegen() 838 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen() 840 Builder.CreateStore(NextVar, Alloca); in Codegen() 890 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local 891 Builder.CreateStore(InitVal, Alloca); in Codegen() 898 NamedValues[VarName] = Alloca; in Codegen() 953 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local 956 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas() [all …]
|
D | toy.cpp | 1072 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local 1079 Builder.CreateStore(StartVal, Alloca); in Codegen() 1094 NamedValues[VarName] = Alloca; in Codegen() 1118 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen() 1120 Builder.CreateStore(NextVar, Alloca); in Codegen() 1170 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local 1171 Builder.CreateStore(InitVal, Alloca); in Codegen() 1178 NamedValues[VarName] = Alloca; in Codegen() 1240 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local 1243 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas() [all …]
|
/external/swiftshader/third_party/LLVM/examples/Kaleidoscope/Chapter7/ |
D | toy.cpp | 785 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local 792 Builder.CreateStore(StartVal, Alloca); in Codegen() 807 NamedValues[VarName] = Alloca; in Codegen() 831 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen() 833 Builder.CreateStore(NextVar, Alloca); in Codegen() 883 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local 884 Builder.CreateStore(InitVal, Alloca); in Codegen() 891 NamedValues[VarName] = Alloca; in Codegen() 950 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local 953 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas() [all …]
|
/external/llvm/examples/Kaleidoscope/MCJIT/cached/ |
D | toy-jit.cpp | 810 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local 817 Builder.CreateStore(StartVal, Alloca); in Codegen() 832 NamedValues[VarName] = Alloca; in Codegen() 856 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen() 858 Builder.CreateStore(NextVar, Alloca); in Codegen() 908 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local 909 Builder.CreateStore(InitVal, Alloca); in Codegen() 916 NamedValues[VarName] = Alloca; in Codegen() 971 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local 974 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas() [all …]
|
D | toy.cpp | 1174 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local 1181 Builder.CreateStore(StartVal, Alloca); in Codegen() 1196 NamedValues[VarName] = Alloca; in Codegen() 1220 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen() 1222 Builder.CreateStore(NextVar, Alloca); in Codegen() 1272 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local 1273 Builder.CreateStore(InitVal, Alloca); in Codegen() 1280 NamedValues[VarName] = Alloca; in Codegen() 1342 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local 1345 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas() [all …]
|
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/ |
D | toy.cpp | 897 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 905 Builder.CreateStore(StartVal, Alloca); in codegen() 920 NamedValues[VarName] = Alloca; in codegen() 946 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in codegen() 948 Builder.CreateStore(NextVar, Alloca); in codegen() 998 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 999 Builder.CreateStore(InitVal, Alloca); in codegen() 1006 NamedValues[VarName] = Alloca; in codegen() 1060 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local 1063 Builder.CreateStore(&Arg, Alloca); in codegen() [all …]
|
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter4/ |
D | toy.cpp | 886 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 894 Builder.CreateStore(StartVal, Alloca); in codegen() 909 NamedValues[VarName] = Alloca; in codegen() 935 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in codegen() 937 Builder.CreateStore(NextVar, Alloca); in codegen() 987 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 988 Builder.CreateStore(InitVal, Alloca); in codegen() 995 NamedValues[VarName] = Alloca; in codegen() 1056 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local 1059 Builder.CreateStore(&Arg, Alloca); in codegen() [all …]
|
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter1/ |
D | toy.cpp | 897 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 905 Builder.CreateStore(StartVal, Alloca); in codegen() 920 NamedValues[VarName] = Alloca; in codegen() 946 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in codegen() 948 Builder.CreateStore(NextVar, Alloca); in codegen() 998 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 999 Builder.CreateStore(InitVal, Alloca); in codegen() 1006 NamedValues[VarName] = Alloca; in codegen() 1060 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local 1063 Builder.CreateStore(&Arg, Alloca); in codegen() [all …]
|
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter2/ |
D | toy.cpp | 897 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 905 Builder.CreateStore(StartVal, Alloca); in codegen() 920 NamedValues[VarName] = Alloca; in codegen() 946 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in codegen() 948 Builder.CreateStore(NextVar, Alloca); in codegen() 998 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 999 Builder.CreateStore(InitVal, Alloca); in codegen() 1006 NamedValues[VarName] = Alloca; in codegen() 1060 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local 1063 Builder.CreateStore(&Arg, Alloca); in codegen() [all …]
|
/external/llvm/include/llvm/CodeGen/ |
D | MachineFrameInfo.h | 113 const AllocaInst *Alloca; member 134 isSpillSlot(isSS), isStatepointSpillSlot(false), Alloca(Val), in StackObject() 424 return Objects[ObjectIdx+NumFixedObjects].Alloca; in getObjectAllocation() 611 const AllocaInst *Alloca = nullptr); 626 int CreateVariableSizedObject(unsigned Alignment, const AllocaInst *Alloca);
|
D | WinEHFuncInfo.h | 68 const AllocaInst *Alloca; member
|
/external/llvm/examples/Kaleidoscope/Chapter8/ |
D | toy.cpp | 893 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 901 Builder.CreateStore(StartVal, Alloca); in codegen() 916 NamedValues[VarName] = Alloca; in codegen() 942 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in codegen() 944 Builder.CreateStore(NextVar, Alloca); in codegen() 994 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 995 Builder.CreateStore(InitVal, Alloca); in codegen() 1002 NamedValues[VarName] = Alloca; in codegen() 1056 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local 1059 Builder.CreateStore(&Arg, Alloca); in codegen() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter7/ |
D | toy.cpp | 898 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 906 Builder.CreateStore(StartVal, Alloca); in codegen() 921 NamedValues[VarName] = Alloca; in codegen() 947 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in codegen() 949 Builder.CreateStore(NextVar, Alloca); in codegen() 999 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 1000 Builder.CreateStore(InitVal, Alloca); in codegen() 1007 NamedValues[VarName] = Alloca; in codegen() 1061 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local 1064 Builder.CreateStore(&Arg, Alloca); in codegen() [all …]
|
/external/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter5/ |
D | toy.cpp | 908 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 916 Builder.CreateStore(StartVal, Alloca); in codegen() 931 NamedValues[VarName] = Alloca; in codegen() 957 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in codegen() 959 Builder.CreateStore(NextVar, Alloca); in codegen() 1009 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 1010 Builder.CreateStore(InitVal, Alloca); in codegen() 1017 NamedValues[VarName] = Alloca; in codegen() 1078 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local 1081 Builder.CreateStore(&Arg, Alloca); in codegen() [all …]
|
/external/swiftshader/third_party/subzero/src/ |
D | IceCfg.cpp | 716 case Inst::InstKind::Alloca: in findLoopInvariantInstructions() 931 auto *Alloca = llvm::cast<InstAlloca>(Instr); in sortAndCombineAllocas() local 934 uint32_t Alignment = std::max(Alloca->getAlignInBytes(), 1u); in sortAndCombineAllocas() 936 llvm::dyn_cast<ConstantInteger32>(Alloca->getSizeInBytes()); in sortAndCombineAllocas() 967 auto *Alloca = llvm::cast<InstAlloca>(Allocas[i]); in sortAndCombineAllocas() local 971 InstArithmetic::create(this, InstArithmetic::Add, Alloca->getDest(), in sortAndCombineAllocas() 974 Alloca->setDeleted(); in sortAndCombineAllocas() 985 auto *Alloca = llvm::cast<InstAlloca>(Allocas[i]); in sortAndCombineAllocas() local 987 Variable *Dest = Alloca->getDest(); in sortAndCombineAllocas() 994 Alloca->setDeleted(); in sortAndCombineAllocas() [all …]
|
/external/llvm/examples/Kaleidoscope/MCJIT/initial/ |
D | toy.cpp | 1032 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local 1039 Builder.CreateStore(StartVal, Alloca); in Codegen() 1054 NamedValues[VarName] = Alloca; in Codegen() 1078 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen() 1080 Builder.CreateStore(NextVar, Alloca); in Codegen() 1130 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local 1131 Builder.CreateStore(InitVal, Alloca); in Codegen() 1138 NamedValues[VarName] = Alloca; in Codegen() 1200 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local 1203 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas() [all …]
|
/external/llvm/examples/Kaleidoscope/Chapter9/ |
D | toy.cpp | 1077 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 1087 Builder.CreateStore(StartVal, Alloca); in codegen() 1102 NamedValues[VarName] = Alloca; in codegen() 1128 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in codegen() 1130 Builder.CreateStore(NextVar, Alloca); in codegen() 1180 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in codegen() local 1181 Builder.CreateStore(InitVal, Alloca); in codegen() 1188 NamedValues[VarName] = Alloca; in codegen() 1266 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, Arg.getName()); in codegen() local 1273 DBuilder->insertDeclare(Alloca, D, DBuilder->createExpression(), in codegen() [all …]
|
/external/llvm/examples/Kaleidoscope/MCJIT/complete/ |
D | toy.cpp | 1252 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local 1259 Builder.CreateStore(StartVal, Alloca); in Codegen() 1274 NamedValues[VarName] = Alloca; in Codegen() 1298 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str()); in Codegen() 1300 Builder.CreateStore(NextVar, Alloca); in Codegen() 1350 AllocaInst *Alloca = CreateEntryBlockAlloca(TheFunction, VarName); in Codegen() local 1351 Builder.CreateStore(InitVal, Alloca); in Codegen() 1358 NamedValues[VarName] = Alloca; in Codegen() 1420 AllocaInst *Alloca = CreateEntryBlockAlloca(F, Args[Idx]); in CreateArgumentAllocas() local 1423 Builder.CreateStore(AI, Alloca); in CreateArgumentAllocas() [all …]
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 58 bool binaryOpIsDerivedFromSameAlloca(Value *Alloca, Value *Val, 392 static bool tryPromoteAllocaToVector(AllocaInst *Alloca) { in tryPromoteAllocaToVector() argument 393 ArrayType *AllocaTy = dyn_cast<ArrayType>(Alloca->getAllocatedType()); in tryPromoteAllocaToVector() 408 for (User *AllocaUser : Alloca->users()) { in tryPromoteAllocaToVector() 411 if (!canVectorizeInst(cast<Instruction>(AllocaUser), Alloca)) in tryPromoteAllocaToVector() 448 Value *BitCast = Builder.CreateBitCast(Alloca, VectorTy->getPointerTo(0)); in tryPromoteAllocaToVector() 458 Value *BitCast = Builder.CreateBitCast(Alloca, VectorTy->getPointerTo(0)); in tryPromoteAllocaToVector()
|
D | AMDGPUTargetTransformInfo.cpp | 49 const AllocaInst *Alloca = in getUnrollingPreferences() local 51 if (Alloca) { in getUnrollingPreferences()
|
/external/llvm/lib/Transforms/Scalar/ |
D | RewriteStatepointsForGC.cpp | 1502 Value *Alloca = AllocaMap[OriginalValue]; in insertRelocationStores() local 1512 cast<AllocaInst>(Alloca)->getAllocatedType(), in insertRelocationStores() 1515 StoreInst *Store = new StoreInst(CastedRelocatedValue, Alloca); in insertRelocationStores() 1537 Value *Alloca = AllocaMap[OriginalValue]; in insertRematerializationStores() local 1539 StoreInst *Store = new StoreInst(RematerializedValue, Alloca); in insertRematerializationStores() 1571 AllocaInst *Alloca = new AllocaInst(LiveValue->getType(), "", in relocationViaAlloca() local 1573 AllocaMap[LiveValue] = Alloca; in relocationViaAlloca() 1574 PromotableAllocas.push_back(Alloca); in relocationViaAlloca() 1630 AllocaInst *Alloca = cast<AllocaInst>(Pair.second); in relocationViaAlloca() local 1636 ToClobber.push_back(Alloca); in relocationViaAlloca() [all …]
|
/external/swiftshader/third_party/LLVM/test/Assembler/ |
D | 2002-04-29-NameBinding.ll | 14 %v1 = alloca i32 ;; Alloca should have one use!
|
/external/llvm/test/Assembler/ |
D | 2002-04-29-NameBinding.ll | 15 %v1 = alloca i32 ;; Alloca should have one use!
|