llvm.org GIT mirror llvm / e96507c
80 col violations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79087 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 10 years ago
1 changed file(s) with 12 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
10691069 // If this is an unaligned load and the target doesn't support it,
10701070 // expand it.
10711071 if (!TLI.allowsUnalignedMemoryAccesses()) {
1072 unsigned ABIAlignment = TLI.getTargetData()->
1073 getABITypeAlignment(LD->getMemoryVT().getTypeForEVT(*DAG.getContext()));
1072 const Type *Ty = LD->getMemoryVT().getTypeForEVT(*DAG.getContext());
1073 unsigned ABIAlignment = TLI.getTargetData()->getABITypeAlignment(Ty);
10741074 if (LD->getAlignment() < ABIAlignment){
10751075 Result = ExpandUnalignedLoad(cast(Result.getNode()),
10761076 DAG, TLI);
12521252 // If this is an unaligned load and the target doesn't support it,
12531253 // expand it.
12541254 if (!TLI.allowsUnalignedMemoryAccesses()) {
1255 unsigned ABIAlignment = TLI.getTargetData()->
1256 getABITypeAlignment(LD->getMemoryVT().getTypeForEVT(*DAG.getContext()));
1255 const Type *Ty = LD->getMemoryVT().getTypeForEVT(*DAG.getContext());
1256 unsigned ABIAlignment = TLI.getTargetData()->getABITypeAlignment(Ty);
12571257 if (LD->getAlignment() < ABIAlignment){
12581258 Result = ExpandUnalignedLoad(cast(Result.getNode()),
12591259 DAG, TLI);
13301330 // If this is an unaligned store and the target doesn't support it,
13311331 // expand it.
13321332 if (!TLI.allowsUnalignedMemoryAccesses()) {
1333 unsigned ABIAlignment = TLI.getTargetData()->
1334 getABITypeAlignment(ST->getMemoryVT().getTypeForEVT(*DAG.getContext()));
1333 const Type *Ty = ST->getMemoryVT().getTypeForEVT(*DAG.getContext());
1334 unsigned ABIAlignment = TLI.getTargetData()->getABITypeAlignment(Ty);
13351335 if (ST->getAlignment() < ABIAlignment)
1336 Result = ExpandUnalignedStore(cast(Result.getNode()), DAG,
1337 TLI);
1336 Result = ExpandUnalignedStore(cast(Result.getNode()),
1337 DAG, TLI);
13381338 }
13391339 break;
13401340 case TargetLowering::Custom:
14291429 // If this is an unaligned store and the target doesn't support it,
14301430 // expand it.
14311431 if (!TLI.allowsUnalignedMemoryAccesses()) {
1432 unsigned ABIAlignment = TLI.getTargetData()->
1433 getABITypeAlignment(ST->getMemoryVT().getTypeForEVT(*DAG.getContext()));
1432 const Type *Ty = ST->getMemoryVT().getTypeForEVT(*DAG.getContext());
1433 unsigned ABIAlignment = TLI.getTargetData()->getABITypeAlignment(Ty);
14341434 if (ST->getAlignment() < ABIAlignment)
1435 Result = ExpandUnalignedStore(cast(Result.getNode()), DAG,
1436 TLI);
1435 Result = ExpandUnalignedStore(cast(Result.getNode()),
1436 DAG, TLI);
14371437 }
14381438 break;
14391439 case TargetLowering::Custom: