1- // ===- InstructionMaps .h ----------------------------------------*- C++ -*-===//
1+ // ===- InstrMaps .h ------ ----------------------------------------*- C++ -*-===//
22//
33// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44// See https://llvm.org/LICENSE.txt for license information.
55// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66//
77// ===----------------------------------------------------------------------===//
88
9- #ifndef LLVM_TRANSFORMS_VECTORIZE_SANDBOXVEC_PASSES_INSTRUCTIONMAPS_H
10- #define LLVM_TRANSFORMS_VECTORIZE_SANDBOXVEC_PASSES_INSTRUCTIONMAPS_H
9+ #ifndef LLVM_TRANSFORMS_VECTORIZE_SANDBOXVEC_PASSES_INSTRMAPS_H
10+ #define LLVM_TRANSFORMS_VECTORIZE_SANDBOXVEC_PASSES_INSTRMAPS_H
1111
1212#include " llvm/ADT/ArrayRef.h"
1313#include " llvm/ADT/DenseMap.h"
@@ -32,15 +32,15 @@ class InstrMaps {
3232 DenseMap<Value *, DenseMap<Value *, unsigned >> VectorToOrigLaneMap;
3333
3434public:
35- // / \Returns all the vector value that we got from vectorizing \p Orig, or
35+ // / \Returns the vector value that we got from vectorizing \p Orig, or
3636 // / nullptr if not found.
3737 Value *getVectorForOrig (Value *Orig) const {
3838 auto It = OrigToVectorMap.find (Orig);
3939 return It != OrigToVectorMap.end () ? It->second : nullptr ;
4040 }
4141 // / \Returns the lane of \p Orig before it got vectorized into \p Vec, or
4242 // / nullopt if not found.
43- std::optional<int > getOrigLane (Value *Vec, Value *Orig) const {
43+ std::optional<unsigned > getOrigLane (Value *Vec, Value *Orig) const {
4444 auto It1 = VectorToOrigLaneMap.find (Vec);
4545 if (It1 == VectorToOrigLaneMap.end ())
4646 return std::nullopt ;
@@ -74,4 +74,4 @@ class InstrMaps {
7474};
7575} // namespace llvm::sandboxir
7676
77- #endif // LLVM_TRANSFORMS_VECTORIZE_SANDBOXVEC_PASSES_INSTRUCTIONMAPS_H
77+ #endif // LLVM_TRANSFORMS_VECTORIZE_SANDBOXVEC_PASSES_INSTRMAPS_H
0 commit comments