mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
80 col violations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1070,8 +1070,8 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
|
|||||||
// If this is an unaligned load and the target doesn't support it,
|
// If this is an unaligned load and the target doesn't support it,
|
||||||
// expand it.
|
// expand it.
|
||||||
if (!TLI.allowsUnalignedMemoryAccesses()) {
|
if (!TLI.allowsUnalignedMemoryAccesses()) {
|
||||||
unsigned ABIAlignment = TLI.getTargetData()->
|
const Type *Ty = LD->getMemoryVT().getTypeForEVT(*DAG.getContext());
|
||||||
getABITypeAlignment(LD->getMemoryVT().getTypeForEVT(*DAG.getContext()));
|
unsigned ABIAlignment = TLI.getTargetData()->getABITypeAlignment(Ty);
|
||||||
if (LD->getAlignment() < ABIAlignment){
|
if (LD->getAlignment() < ABIAlignment){
|
||||||
Result = ExpandUnalignedLoad(cast<LoadSDNode>(Result.getNode()),
|
Result = ExpandUnalignedLoad(cast<LoadSDNode>(Result.getNode()),
|
||||||
DAG, TLI);
|
DAG, TLI);
|
||||||
@@ -1253,8 +1253,8 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
|
|||||||
// If this is an unaligned load and the target doesn't support it,
|
// If this is an unaligned load and the target doesn't support it,
|
||||||
// expand it.
|
// expand it.
|
||||||
if (!TLI.allowsUnalignedMemoryAccesses()) {
|
if (!TLI.allowsUnalignedMemoryAccesses()) {
|
||||||
unsigned ABIAlignment = TLI.getTargetData()->
|
const Type *Ty = LD->getMemoryVT().getTypeForEVT(*DAG.getContext());
|
||||||
getABITypeAlignment(LD->getMemoryVT().getTypeForEVT(*DAG.getContext()));
|
unsigned ABIAlignment = TLI.getTargetData()->getABITypeAlignment(Ty);
|
||||||
if (LD->getAlignment() < ABIAlignment){
|
if (LD->getAlignment() < ABIAlignment){
|
||||||
Result = ExpandUnalignedLoad(cast<LoadSDNode>(Result.getNode()),
|
Result = ExpandUnalignedLoad(cast<LoadSDNode>(Result.getNode()),
|
||||||
DAG, TLI);
|
DAG, TLI);
|
||||||
@@ -1331,11 +1331,11 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
|
|||||||
// If this is an unaligned store and the target doesn't support it,
|
// If this is an unaligned store and the target doesn't support it,
|
||||||
// expand it.
|
// expand it.
|
||||||
if (!TLI.allowsUnalignedMemoryAccesses()) {
|
if (!TLI.allowsUnalignedMemoryAccesses()) {
|
||||||
unsigned ABIAlignment = TLI.getTargetData()->
|
const Type *Ty = ST->getMemoryVT().getTypeForEVT(*DAG.getContext());
|
||||||
getABITypeAlignment(ST->getMemoryVT().getTypeForEVT(*DAG.getContext()));
|
unsigned ABIAlignment = TLI.getTargetData()->getABITypeAlignment(Ty);
|
||||||
if (ST->getAlignment() < ABIAlignment)
|
if (ST->getAlignment() < ABIAlignment)
|
||||||
Result = ExpandUnalignedStore(cast<StoreSDNode>(Result.getNode()), DAG,
|
Result = ExpandUnalignedStore(cast<StoreSDNode>(Result.getNode()),
|
||||||
TLI);
|
DAG, TLI);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TargetLowering::Custom:
|
case TargetLowering::Custom:
|
||||||
@@ -1430,11 +1430,11 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
|
|||||||
// If this is an unaligned store and the target doesn't support it,
|
// If this is an unaligned store and the target doesn't support it,
|
||||||
// expand it.
|
// expand it.
|
||||||
if (!TLI.allowsUnalignedMemoryAccesses()) {
|
if (!TLI.allowsUnalignedMemoryAccesses()) {
|
||||||
unsigned ABIAlignment = TLI.getTargetData()->
|
const Type *Ty = ST->getMemoryVT().getTypeForEVT(*DAG.getContext());
|
||||||
getABITypeAlignment(ST->getMemoryVT().getTypeForEVT(*DAG.getContext()));
|
unsigned ABIAlignment = TLI.getTargetData()->getABITypeAlignment(Ty);
|
||||||
if (ST->getAlignment() < ABIAlignment)
|
if (ST->getAlignment() < ABIAlignment)
|
||||||
Result = ExpandUnalignedStore(cast<StoreSDNode>(Result.getNode()), DAG,
|
Result = ExpandUnalignedStore(cast<StoreSDNode>(Result.getNode()),
|
||||||
TLI);
|
DAG, TLI);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TargetLowering::Custom:
|
case TargetLowering::Custom:
|
||||||
|
Reference in New Issue
Block a user